ruff: Configure hacking as external linter
Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: Ifa6dc68f51df40c9233f51665ffc4209a100e51b
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user