feat: add pre-commit hooks

This commit is contained in:
Khue Doan
2022-07-19 21:16:19 +07:00
parent c3f4433a1a
commit 214f635697
5 changed files with 50 additions and 3 deletions

View 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
```