2025-02-19 20:15:44 +00:00
|
|
|
[tool.mypy]
|
|
|
|
|
python_version = "3.9"
|
|
|
|
|
show_column_numbers = true
|
|
|
|
|
show_error_context = true
|
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
follow_imports = "normal"
|
|
|
|
|
incremental = true
|
|
|
|
|
check_untyped_defs = true
|
|
|
|
|
warn_unused_ignores = true
|
|
|
|
|
# keep this in-sync with 'mypy.exclude' in '.pre-commit-config.yaml'
|
|
|
|
|
exclude = '''
|
|
|
|
|
(?x)(
|
|
|
|
|
doc
|
|
|
|
|
| examples
|
|
|
|
|
| releasenotes
|
|
|
|
|
)
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
|
module = ["openstackclient.tests.unit.*"]
|
|
|
|
|
ignore_errors = true
|
|
|
|
|
|
2024-08-29 10:55:32 +01:00
|
|
|
[tool.ruff]
|
|
|
|
|
line-length = 79
|
|
|
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
|
quote-style = "preserve"
|
|
|
|
|
docstring-code-format = true
|
2024-09-12 18:00:48 +01:00
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2024-09-12 17:57:14 +01:00
|
|
|
select = ["E4", "E7", "E9", "F", "S", "U"]
|
2024-09-12 18:00:48 +01:00
|
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
|
"openstackclient/tests/*" = ["S"]
|