diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..4bfbd252 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: trailing-whitespace + - id: check-json + - id: end-of-file-fixer + - id: name-tests-test + - id: requirements-txt-fixer +- repo: https://github.com/psf/black + rev: 21.12b0 + hooks: + - id: black + args: [--line-length=120]