Per-file configuration for wormholetesting.py moved from inline mypy configuration moved to mypy.ini file

This commit is contained in:
dlee 2023-03-13 11:04:52 -05:00
parent 4f47a18c6a
commit 74ff8cd080
2 changed files with 16 additions and 5 deletions

View File

@ -8,3 +8,19 @@ warn_unused_configs =True
no_implicit_optional = True
warn_redundant_casts = True
strict_equality = True
[mypy-allmydata.test.cli.wormholetesting]
warn_unused_configs = True
disallow_any_generics = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = True
no_implicit_reexport = True
strict_equality = True
strict_concatenate = True

View File

@ -29,11 +29,6 @@ For example::
import wormhole
run(peerA(wormhole))
"""
# mypy: warn-unused-configs, disallow-any-generics, disallow-subclassing-any, disallow-untyped-calls, disallow-untyped-defs, disallow-incomplete-defs, check-untyped-defs, disallow-untyped-decorators, warn-redundant-casts, warn-unused-ignores, warn-return-any, no-implicit-reexport, strict-equality, strict-concatenate
# This inline mypy config applies a per-file mypy config for this file.
# It applies the '--strict' list of flags to this file.
# If you want to test using CLI run the command remove the inline config above and run:
# "mypy --follow-imports silent --strict src/allmydata/test/cli/wormholetesting.py"
from __future__ import annotations