Skip to content
Snippets Groups Projects
Commit af8ad71c authored by Jakub Maloštík's avatar Jakub Maloštík
Browse files

Move mypy config to pyproject.toml

(Redmine issue: #7826)
parent 3d8ca80e
Branches malostik-feature-#6257-timeline-stats-review
No related tags found
1 merge request!103Move mypy config to pyproject.toml
Pipeline #15512 passed
[mypy]
plugins = sqlalchemy.ext.mypy.plugin
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
strict_equality = True
extra_checks = True
disallow_untyped_decorators = True
disallow_incomplete_defs = True
no_implicit_reexport = True
warn_return_any = True
# submodules with strict type checking
[mypy-hawat.charts.*]
check_untyped_defs = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_defs = True
# Turn off strict for tests
[mypy-*.test.*]
check_untyped_defs = False
disallow_subclassing_any = False
disallow_untyped_calls = False
disallow_untyped_defs = False
no_implicit_reexport = False
# Libraries without available stubs
[mypy-ipranges.*,pyzenkit.*,idea.*,typedcols.*,pydgets.*,pynspect.*,wtforms.*,flask_wtf.*,flask_babel.*,flask_sqlalchemy.*,flask_login.*,flask_principal.*,flask_debugtoolbar.*,plotly.*,rrdtool.*]
ignore_missing_imports = True
[build-system]
requires = ["setuptools >= 64.0"]
build-backend = "setuptools.build_meta"
[tool.mypy]
plugins = "sqlalchemy.ext.mypy.plugin"
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
extra_checks = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
no_implicit_reexport = true
warn_return_any = true
[[tool.mypy.overrides]] # Submodules with strict type checking
module = [
"hawat.charts.*"
]
check_untyped_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
[[tool.mypy.overrides]] # Turn off strict type checking for tests
module = "*.test.*"
check_untyped_defs = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_defs = false
no_implicit_reexport = false
[[tool.mypy.overrides]] # Libraries without available stubs
module = [
"ipranges.*",
"pyzenkit.*",
"idea.*",
"typedcols.*",
"pydgets.*",
"pynspect.*",
"wtforms.*",
"flask_wtf.*",
"flask_babel.*",
"flask_sqlalchemy.*",
"flask_login.*",
"flask_principal.*",
"flask_debugtoolbar.*",
"plotly.*",
"rrdtool.*"
]
ignore_missing_imports = true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment