Enable mypy pre-commit hook

Change-Id: I740bc58ae57e22c878b52215e72aaec6ebca1299
This commit is contained in:
Ihar Hrachyshka 2025-01-09 18:20:40 -05:00
parent 3f59155eff
commit 1de9764ae9
3 changed files with 9 additions and 1 deletions

View File

@ -29,6 +29,12 @@ repos:
hooks:
- id: remove-tabs
exclude: '.*\.(svg)$'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
args: [--config-file=./mypy.ini]
pass_filenames: false
- repo: local
hooks:
- id: flake8

View File

@ -11,3 +11,5 @@ disable_error_code = import-untyped,var-annotated,import-not-found
# honor excludes by not following there through imports
follow_imports = silent
files = neutron_lib

View File

@ -23,7 +23,7 @@ commands =
[testenv:mypy]
deps = {[testenv:pep8]deps}
commands =
mypy --config-file ./mypy.ini neutron_lib
mypy --config-file ./mypy.ini
[testenv:pep8]
deps =