added pre-commit

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2022-04-03 18:57:58 +05:30
parent d054916439
commit e2a42d3027
2 changed files with 17 additions and 0 deletions

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

@@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pycqa/flake8
rev: '4.0.1'
hooks:
- id: flake8
args:
- max-line-length = 100,
- max-complexity = 12
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.942'
hooks:
- id: mypy
args: [--ignore-missing-imports]