Files
brencher/mypy.ini
694283e7c4 Migrate to uvicorn: Flask/SocketIO → FastAPI + native WebSocket (#53)
* Initial plan

* Migrate from Flask/SocketIO to FastAPI/uvicorn with native WebSocket support

Co-authored-by: rudolf1 <5525769+rudolf1@users.noreply.github.com>

* Consolidate three WebSocket endpoints into single /ws connection

Co-authored-by: rudolf1 <5525769+rudolf1@users.noreply.github.com>

* Replace event/data envelope with named message fields

Co-authored-by: rudolf1 <5525769+rudolf1@users.noreply.github.com>

* Fix bad merge: remove duplicate lines in app.py and restore forEach loop in app.js

Agent-Logs-Url: https://github.com/rudolf1/brencher/sessions/ac246b64-cf2e-4cd3-ab28-5cd9caf28944

Co-authored-by: rudolf1 <5525769+rudolf1@users.noreply.github.com>

* x

* x

* x

* x

* x

* x

* x

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rudolf1 <5525769+rudolf1@users.noreply.github.com>
Co-authored-by: rudolf <rudolfss13@gmail.com>
2026-03-31 16:48:03 +02:00

77 lines
1.6 KiB
INI

[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