From 4329cb0a3b8eec858762755a38c6a3e196876c0e Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Sun, 1 Oct 2023 18:08:45 +0200 Subject: Initial Commit Signed-off-by: Colin Wilk --- .pre-commit-config.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .pre-commit-config.yaml (limited to '.pre-commit-config.yaml') 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"] -- cgit v1.2.3