[mypy]
python_version = 3.13
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = False
check_untyped_defs = False

# SQLAlchemy plugin to handle ORM models
plugins = sqlalchemy.ext.mypy.plugin

# Ignore missing imports for third-party libraries without stubs
ignore_missing_imports = False

# Per-module options
[mypy-app.models.db_models]
# SQLAlchemy models - disable strict checking
disallow_untyped_defs = False
warn_return_any = False

[mypy-app.database.operations]
# Database operations - SQLAlchemy ORM usage
disallow_untyped_defs = False
warn_return_any = False

[mypy-app.config]
# Pydantic settings - loaded from environment
disallow_untyped_defs = False

[mypy-pendulum.*]
ignore_missing_imports = True

[mypy-sqlalchemy.*]
ignore_missing_imports = True

[mypy-asyncpg.*]
ignore_missing_imports = True
