mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-06 09:08:26 +07:00
18 lines
352 B
Markdown
18 lines
352 B
Markdown
# 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
|
|
```
|