diff options
Diffstat (limited to '.pre-commit-config.yaml')
| -rw-r--r-- | .pre-commit-config.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..3bae5dd --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,36 @@ +repos: +- repo: https://github.com/python-poetry/poetry + rev: 'master' + hooks: + - id: poetry-check + - id: poetry-install + - id: poetry-lock + - id: poetry-export + + +- repo: https://github.com/psf/black + rev: 23.9.1 + hooks: + - id: black + + +- repo: local + hooks: + - id: pylint + name: pylint + entry: pylint + language: system + types: [python] + args: + [ + "-rn", # Only display messages + "-sn", # Don't display the score + ] + + - id: pytype + name: pytype + entry: poetry run pytype + language: system + types: [python] + pass_filenames: false + args: ["--keep-going", "src"] |