diff options
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..70bbacc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,30 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +default_language_version: + python: python3.10 + +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: debug-statements + - id: check-merge-conflict + - id: trailing-whitespace + - id: check-yaml + - id: check-toml + - id: check-added-large-files + +- repo: https://github.com/pycqa/flake8 + rev: 6.0.0 + hooks: + - id: flake8 + exclude: 'scratch-testing' + args: ['--ignore=E501,E203,W503,E731', + '--max-line-length=130', + '--per-file-ignores=__init__.py:F401'] + +- repo: https://github.com/psf/black + rev: 22.12.0 + hooks: + - id: black + args: ["."] |