Files
brencher/mypy.ini
T
2026-01-15 20:55:08 +01:00

59 lines
1.2 KiB
INI

[mypy]
# Specify Python version
python_version = 3.11
# Import discovery
mypy_path = backend
namespace_packages = True
explicit_package_bases = True
# Type checking strictness - require type annotations
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = False
no_implicit_reexport = True
disallow_any_unimported = True
disallow_untyped_calls = True
# Warnings
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = False
warn_unreachable = False
# Error output
show_error_codes = True
show_column_numbers = True
pretty = True
# Miscellaneous - relaxed for initial adoption
strict_equality = False
no_implicit_optional = True
# Allow some flexibility during transition
allow_untyped_calls = True
allow_untyped_defs = False
allow_incomplete_defs = False
# Per-module options for third-party libraries without type stubs
[mypy-git.*]
ignore_missing_imports = True
[mypy-docker.*]
ignore_missing_imports = True
[mypy-flask_socketio.*]
ignore_missing_imports = True
[mypy-dotenv.*]
ignore_missing_imports = True
[mypy-yaml.*]
ignore_missing_imports = True
[mypy-flask.*]
ignore_missing_imports = True
[mypy-socketio.*]
ignore_missing_imports = True