Enable mypy pre-commit hook
Change-Id: I740bc58ae57e22c878b52215e72aaec6ebca1299
This commit is contained in:
parent
3f59155eff
commit
1de9764ae9
@ -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
|
||||
|
2
mypy.ini
2
mypy.ini
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user