[mypy] # Specify Python version python_version = 3.12 # 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-steps.git] disallow_any_unimported = False [mypy-docker.*] ignore_missing_imports = True [mypy-dotenv.*] ignore_missing_imports = True [mypy-yaml.*] ignore_missing_imports = True [mypy-websockets.*] ignore_missing_imports = True [mypy-uvicorn.*] ignore_missing_imports = True [mypy-fastapi.*] ignore_missing_imports = True [mypy-pytest.*] ignore_missing_imports = True # Relax type checking for test files ; [mypy-tests.*] ; disallow_any_unimported = False ; disallow_untyped_calls = False ; allow_untyped_defs = True ; disallow_untyped_defs = False ; disallow_incomplete_defs = False ; check_untyped_defs = False ; warn_return_any = False ; warn_unused_ignores = False ; disallow_untyped_decorators = False