pyproject: remove global SLF001 ignore
ignoring SLF001 (private member access) globally is not ideal, as it disables a valuable check throughout the entire codebase disable SLF001 only for test files instead
This commit is contained in:
@@ -52,7 +52,6 @@ lint.ignore = [
|
|||||||
"TRY301",
|
"TRY301",
|
||||||
"TRY300",
|
"TRY300",
|
||||||
"ANN401",
|
"ANN401",
|
||||||
"SLF001",
|
|
||||||
"RUF100",
|
"RUF100",
|
||||||
"TRY400",
|
"TRY400",
|
||||||
"E402",
|
"E402",
|
||||||
@@ -66,3 +65,7 @@ lint.ignore = [
|
|||||||
"SIM112",
|
"SIM112",
|
||||||
"ISC001",
|
"ISC001",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
"*_test.py" = ["SLF001"]
|
||||||
|
"test_*.py" = ["SLF001"]
|
||||||
|
|||||||
Reference in New Issue
Block a user