Add mypy pre-commit hook

This commit is contained in:
Thomas Holder
2023-07-23 14:57:02 +02:00
committed by Peter Cock
parent 42ca9f27b8
commit cead97af1b
3 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
[mypy]
# equivalent to "files" in .pre-commit-config.yaml
files = Bio,BioSQL
show_error_context = true
show_column_numbers = true

View File

@ -31,6 +31,12 @@ repos:
'flake8-rst-docstrings>=0.2.3',
'pydocstyle>=6.0.0',
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
# equivalent to "files" in .mypy.ini
files: '^(Bio|BioSQL)/'
- repo: https://github.com/asottile/blacken-docs
rev: 1.14.0
hooks:

View File

@ -29,3 +29,6 @@ numpydoc==1.3.1
pygments
sphinx==4.3.2
sphinx_rtd_theme
# Static type checking
mypy