feat: add strict mypy type-checking for app/utils/ module
- Add [[tool.mypy.overrides]] section for app/utils/** with disallow_untyped_defs=true - Add type annotations to all functions in app/utils/ (12 files) - Fix type annotations in app/config.py and app/database.py (imported by utils) - All 85 source files now pass mypy type checking Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -194,6 +194,12 @@ disable_error_code = [
|
||||
"call-arg", # Dynamic call signatures in framework code
|
||||
]
|
||||
|
||||
# Stricter type-checking for utility modules
|
||||
[[tool.mypy.overrides]]
|
||||
module = "app.utils.*"
|
||||
disallow_untyped_defs = true
|
||||
disallow_incomplete_defs = true
|
||||
|
||||
# Coverage configuration
|
||||
[tool.coverage.run]
|
||||
source = ["app"]
|
||||
|
||||
Reference in New Issue
Block a user