mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
Add info about git hook for black
This commit is contained in:
parent
dcf4accd7e
commit
dd8bd0078d
2 changed files with 4 additions and 2 deletions
2
.githooks/pre-commit
Normal file → Executable file
2
.githooks/pre-commit
Normal file → Executable file
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo "Formatting all python files with Black"
|
echo "Formatting all python files with Black"
|
||||||
black .
|
black .
|
|
@ -5,3 +5,5 @@
|
||||||
|
|
||||||
# Contributions
|
# Contributions
|
||||||
Please use `black` formatter.
|
Please use `black` formatter.
|
||||||
|
|
||||||
|
You can automate the process by running `cp .githooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit` after pulling the repository.
|
Loading…
Reference in a new issue