summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorColin Wilk <colin.wilk@tum.de>2023-10-01 18:08:45 +0200
committerColin Wilk <colin.wilk@tum.de>2023-10-01 18:17:07 +0200
commit4329cb0a3b8eec858762755a38c6a3e196876c0e (patch)
treed7b5953fe3f4a58eef8fd7f1366057f047ad908a /.pre-commit-config.yaml
downloadszuruboorupy-4329cb0a3b8eec858762755a38c6a3e196876c0e.tar.gz
szuruboorupy-4329cb0a3b8eec858762755a38c6a3e196876c0e.zip
Initial Commit
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml36
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"]