5b7ba604b4
The 'strict_concatenate' setting is not copied to resolve the following warning: Warning: --strict-concatenate is deprecated; use --extra-checks instead Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I557c994d61593b767486d03b17e4c75eaea47f20
57 lines
1.3 KiB
TOML
57 lines
1.3 KiB
TOML
[tool.mypy]
|
|
show_column_numbers = true
|
|
show_error_context = true
|
|
ignore_missing_imports = true
|
|
follow_imports = "normal"
|
|
check_untyped_defs = true
|
|
warn_unused_ignores = true
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
warn_redundant_casts = true
|
|
strict_equality = true
|
|
disallow_untyped_decorators = true
|
|
disallow_any_generics = true
|
|
disallow_subclassing_any = true
|
|
disallow_untyped_calls = true
|
|
disallow_incomplete_defs = true
|
|
disallow_untyped_defs = true
|
|
no_implicit_reexport = true
|
|
extra_checks = true
|
|
# keep this in-sync with 'mypy.exclude' in '.pre-commit-config.yaml'
|
|
exclude = '''
|
|
(?x)(
|
|
doc
|
|
| examples
|
|
| releasenotes
|
|
)
|
|
'''
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["keystoneauth1.tests.unit.*"]
|
|
ignore_errors = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = [
|
|
"keystoneauth1.fixture.*",
|
|
"keystoneauth1.hacking.*",
|
|
]
|
|
disallow_subclassing_any = false
|
|
disallow_untyped_defs = false
|
|
disallow_untyped_calls = false
|
|
|
|
[tool.ruff]
|
|
line-length = 79
|
|
target-version = "py38"
|
|
|
|
[tool.ruff.lint]
|
|
# enable the following rule classes:
|
|
#
|
|
# C4: https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
|
|
# UP: https://docs.astral.sh/ruff/rules/#pyupgrade-up
|
|
select = ["C4", "UP"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "preserve"
|
|
docstring-code-format = true
|
|
skip-magic-trailing-comma = true
|