Change-Id: I2ad60cfdd58b21a9b43063c7f87e2084a0086cc5 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
38 lines
734 B
TOML
38 lines
734 B
TOML
[tool.mypy]
|
|
python_version = "3.10"
|
|
show_column_numbers = true
|
|
show_error_context = true
|
|
strict = true
|
|
extra_checks = true
|
|
# keep this in-sync with 'mypy.exclude' in '.pre-commit-config.yaml'
|
|
exclude = '''
|
|
(?x)(
|
|
doc
|
|
| releasenotes
|
|
)
|
|
'''
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["os_service_types.tests.*"]
|
|
disallow_subclassing_any = false
|
|
disallow_untyped_calls = false
|
|
disallow_untyped_defs = false
|
|
|
|
[tool.ruff]
|
|
line-length = 79
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "preserve"
|
|
docstring-code-format = true
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E4", "E7", "E9", "F", "S", "U"]
|
|
ignore = [
|
|
# we only use asserts for type narrowing
|
|
"S101",
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"os_service_types/tests/*" = ["S"]
|