From 798c1a92776a4b07be6eea04e3613b045ce35389 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Sat, 26 Jul 2025 20:24:20 +0200 Subject: [PATCH] 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 --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bf7088450..ebf4e7c9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,6 @@ lint.ignore = [ "TRY301", "TRY300", "ANN401", - "SLF001", "RUF100", "TRY400", "E402", @@ -66,3 +65,7 @@ lint.ignore = [ "SIM112", "ISC001", ] + +[tool.ruff.lint.per-file-ignores] +"*_test.py" = ["SLF001"] +"test_*.py" = ["SLF001"]