Per-file configuration for wormholetesting.py moved from inline mypy configuration moved to mypy.ini file
This commit is contained in:
parent
4f47a18c6a
commit
74ff8cd080
16
mypy.ini
16
mypy.ini
@ -8,3 +8,19 @@ warn_unused_configs =True
|
|||||||
no_implicit_optional = True
|
no_implicit_optional = True
|
||||||
warn_redundant_casts = True
|
warn_redundant_casts = True
|
||||||
strict_equality = 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
|
||||||
|
@ -29,11 +29,6 @@ For example::
|
|||||||
import wormhole
|
import wormhole
|
||||||
run(peerA(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
|
from __future__ import annotations
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user