diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..80b4f42 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: https://github.com/psf/black + rev: 24.2.0 + hooks: + - id: black diff --git a/requirements.dev.txt b/requirements.dev.txt new file mode 100644 index 0000000..ac899fb --- /dev/null +++ b/requirements.dev.txt @@ -0,0 +1,2 @@ +black>=24,<25 +pre-commit>=3.6.2,<4