ruff: Configure hacking as external linter

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ifa6dc68f51df40c9233f51665ffc4209a100e51b
This commit is contained in:
Stephen Finucane
2026-03-09 12:41:09 +00:00
parent e29aff07f8
commit 94e25373e2

View File

@@ -52,8 +52,8 @@ python_version = "3.10"
show_column_numbers = true
show_error_context = true
strict = true
ignore_missing_imports = true
exclude = '(?x)(doc | examples | releasenotes)'
disable_error_code = ["import-untyped"]
exclude = "(?x)(doc | releasenotes)"
[[tool.mypy.overrides]]
module = ["stevedore.tests.*"]
@@ -65,8 +65,14 @@ disallow_any_generics = false
[tool.ruff]
line-length = 79
[tool.ruff.format]
quote-style = "preserve"
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["C4", "E4", "E5", "E7", "E9", "F", "G", "LOG", "S", "U"]
external = ["H"]
ignore = [
# we only use asserts for type narrowing
"S101",
@@ -74,8 +80,3 @@ ignore = [
[tool.ruff.lint.per-file-ignores]
"stevedore/tests/*" = ["S"]
[tool.ruff.format]
quote-style = "preserve"
docstring-code-format = true
skip-magic-trailing-comma = true