[build-system]
requires = [
    "setuptools>=42",
    "wheel"
]
build-backend = "setuptools.build_meta"

[tool.mypy]
plugins = "sqlalchemy.ext.mypy.plugin"
python_version = "3.10"
follow_imports = "silent"
ignore_missing_imports = true
# this list shall slowly grow until it covers the whole codebase.
files = [
    "pycroft/helpers",
    "pycroft/lib",
    "ldap_sync",
]
mypy_path = "stubs"
namespace_packages = true

# global rules
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
no_strict_optional = true

# stricter rules
[[tool.mypy.overrides]]
module = [
    "ldap_sync",
    "ldap_sync.*",
    "pycroft.lib",
    "pycroft.lib.*",
    "pycroft.helpers",
    "pycroft.helpers.interval",
    "pycroft.helpers.errorcode",
]
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_globals = true

[build-system]
requires = [
    "setuptools>=42",
    "wheel"
]
build-backend = "setuptools.build_meta"

[tool.mypy]
plugins = "sqlalchemy.ext.mypy.plugin"
python_version = "3.10"
follow_imports = "silent"
ignore_missing_imports = true
# this list shall slowly grow until it covers the whole codebase.
files = [
    "pycroft/helpers",
    "pycroft/lib",
    "ldap_sync",
]
mypy_path = "stubs"
namespace_packages = true

# global rules
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
no_strict_optional = true

# stricter rules
[[tool.mypy.overrides]]
module = [
    "ldap_sync",
    "ldap_sync.*",
    "pycroft.lib",
    "pycroft.lib.*",
    "pycroft.helpers",
    "pycroft.helpers.errorcode",
]
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_globals = true

Revert strict type checking for `helpers.interval`
Revert strict type checking for `helpers.interval`

This has not been resolved yet.

Refs #559
