neutron/mypy.ini
Ihar Hrachyshka 434ef3018e Enable mypy pre-commit hook
Change-Id: I266a2866627fcf66d0f5111c9237a37e55414685
2025-01-09 18:10:18 -05:00

21 lines
603 B
INI

# Config file options: https://mypy.readthedocs.io/en/stable/config_file.html
[mypy]
incremental = True
pretty = True
show_error_context = True
show_column_numbers = True
warn_unused_ignores = True
# remove gradually as progress is made
disable_error_code = import-untyped,var-annotated,import-not-found
# honor excludes by not following there through imports
follow_imports = silent
files = neutron
# NOTE: Gradually enable type checking for each package.
# Finally, when the whole repo is migrated this option can be deleted
# and rules applied to the whole repo.
exclude = (?x)(^neutron/tests/$)