Add info about git hook for black

This commit is contained in:
Matěj Divecký 2023-10-25 19:44:27 +02:00
parent dcf4accd7e
commit dd8bd0078d
2 changed files with 4 additions and 2 deletions

2
.githooks/pre-commit Normal file → Executable file
View 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 .

View file

@ -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.