mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-15 10:18:33 +07:00
feat: add pre-commit hooks
This commit is contained in:
17
docs/tutorials/install-pre-commit-hooks.md
Normal file
17
docs/tutorials/install-pre-commit-hooks.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Install pre-commit hooks
|
||||
|
||||
> TODO: organize developer-focused documentation
|
||||
|
||||
Git hook scripts are useful for identifying simple issues before commiting changes.
|
||||
|
||||
Install [pre-commit](https://pre-commit.com/#install) first, one-liner for Arch users:
|
||||
|
||||
```sh
|
||||
sudo pacman -S python-pre-commit
|
||||
```
|
||||
|
||||
Then install git hook scripts:
|
||||
|
||||
```sh
|
||||
make git-hooks
|
||||
```
|
Reference in New Issue
Block a user