chore: add black pre-commit hook

This commit is contained in:
jo 2022-11-19 15:27:03 +01:00 committed by JuniorJPDJ
commit fa51738fe8
3 changed files with 7 additions and 16 deletions

View file

@ -58,4 +58,5 @@ name = "Update instructions"
showcontent = true
[tool.black]
exclude = "(.git|.hg|.mypy_cache|.tox|.venv|_build|buck-out|build|dist|migrations|data)"
extend-exclude = "(api/.*/migrations/.*)"
force-exclude = "(api/.*/migrations/.*)" # pre-commit pass files as args