fix mypy, add pre-commit

This commit is contained in:
collerek
2021-10-09 19:43:21 +02:00
parent 4896a3a982
commit 127df1e9cb
4 changed files with 178 additions and 5 deletions

17
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,17 @@
repos:
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [ '--max-line-length=88' ]
files: ormar
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
files: ormar tests
additional_dependencies: [ types-pytz ]