Skip to content

Commit c49cf62

Browse files
committed
Suppress S101 (assert in tests) via per-file-ignores
S101 started firing after a ruff version bump in CI, including against the pre-existing test_00.py. Use of assert is standard pytest practice; suppress it for tests/* alongside SLF001.
1 parent 6307ae6 commit c49cf62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@ ignore = [
117117

118118
[tool.ruff.lint.per-file-ignores]
119119
"tests/*" = [
120+
"S101", # Use of assert (standard in pytest)
120121
"SLF001", # Private member accessed (tests legitimately access module internals)
121122
]

0 commit comments

Comments
 (0)