Only skip unused-import checks in __init__.py files (#2844)
This will help catch unused imports in other files when using Ruff.
This commit is contained in:
parent
f13f3d53b6
commit
f783042e28
|
|
@ -194,7 +194,6 @@ select = [
|
||||||
ignore = [
|
ignore = [
|
||||||
"E701", # multiple-statements-on-one-line-colon
|
"E701", # multiple-statements-on-one-line-colon
|
||||||
"E722", # bare-except
|
"E722", # bare-except
|
||||||
"F401", # unused-import
|
|
||||||
"PLW2901", # redefined-loop-name
|
"PLW2901", # redefined-loop-name
|
||||||
"UP006", # non-pep585-annotation
|
"UP006", # non-pep585-annotation
|
||||||
"UP007", # non-pep604-annotation
|
"UP007", # non-pep604-annotation
|
||||||
|
|
@ -209,3 +208,6 @@ ignore = [
|
||||||
|
|
||||||
[tool.ruff.lint.mccabe]
|
[tool.ruff.lint.mccabe]
|
||||||
max-complexity = 40
|
max-complexity = 40
|
||||||
|
|
||||||
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
"__init__.py" = ["F401"] # unused-import
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue