2022-04-12 16:30:55 +03:00
|
|
|
[mypy]
|
2025-01-05 17:47:57 +03:00
|
|
|
python_version = 3.11
|
2022-04-12 23:24:45 +03:00
|
|
|
show_error_codes = true
|
2022-04-16 18:40:04 +03:00
|
|
|
follow_imports = normal
|
2022-04-12 16:30:55 +03:00
|
|
|
ignore_missing_imports = true
|
2022-04-12 23:24:45 +03:00
|
|
|
strict_equality = true
|
|
|
|
|
warn_incomplete_stub = true
|
|
|
|
|
warn_redundant_casts = true
|
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
warn_unused_ignores = true
|
|
|
|
|
enable_error_code = ignore-without-code
|
|
|
|
|
check_untyped_defs = true
|
|
|
|
|
disallow_incomplete_defs = true
|
|
|
|
|
disallow_subclassing_any = true
|
2022-11-24 05:03:20 +03:00
|
|
|
# https://github.com/python/mypy/issues/10757
|
|
|
|
|
disallow_untyped_calls = false
|
2022-04-12 23:24:45 +03:00
|
|
|
disallow_untyped_decorators = true
|
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
|
no_implicit_optional = true
|
|
|
|
|
warn_return_any = true
|
|
|
|
|
warn_unreachable = true
|
|
|
|
|
no_implicit_reexport = true
|
2022-04-12 16:30:55 +03:00
|
|
|
|
|
|
|
|
[mypy-frigate.*]
|
2026-03-25 18:28:48 +03:00
|
|
|
ignore_errors = false
|
|
|
|
|
|
2026-03-26 21:54:12 +03:00
|
|
|
# Third-party code imported from https://github.com/ufal/whisper_streaming
|
|
|
|
|
[mypy-frigate.data_processing.real_time.whisper_online]
|
2026-03-26 03:30:59 +03:00
|
|
|
ignore_errors = true
|
2026-03-25 18:28:48 +03:00
|
|
|
|
2026-03-26 21:54:12 +03:00
|
|
|
# TODO: Remove ignores for these modules as they are updated with type annotations.
|
2026-03-25 18:28:48 +03:00
|
|
|
|
2026-03-26 21:54:12 +03:00
|
|
|
[mypy-frigate.api.*]
|
2026-03-26 03:30:59 +03:00
|
|
|
ignore_errors = true
|
2026-03-25 18:28:48 +03:00
|
|
|
|
2026-03-26 21:54:12 +03:00
|
|
|
[mypy-frigate.config.*]
|
2026-03-26 03:30:59 +03:00
|
|
|
ignore_errors = true
|
2026-03-25 18:28:48 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.debug_replay]
|
|
|
|
|
ignore_errors = true
|
2022-04-12 23:24:45 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.detectors.*]
|
|
|
|
|
ignore_errors = true
|
2022-04-16 18:40:04 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.embeddings.*]
|
|
|
|
|
ignore_errors = true
|
2022-04-16 18:40:04 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.http]
|
|
|
|
|
ignore_errors = true
|
2025-08-17 20:27:42 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.ptz.*]
|
|
|
|
|
ignore_errors = true
|
2022-04-16 18:40:04 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.stats.*]
|
|
|
|
|
ignore_errors = true
|
2022-04-12 23:24:45 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.test.*]
|
|
|
|
|
ignore_errors = true
|
2024-10-21 18:00:38 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.util.*]
|
|
|
|
|
ignore_errors = true
|
2024-10-21 18:00:38 +03:00
|
|
|
|
2026-03-26 03:30:59 +03:00
|
|
|
[mypy-frigate.video.*]
|
|
|
|
|
ignore_errors = true
|