Skip to content

Commit e8dc9ce

Browse files
committed
Configure ruff to allow assert statements in tests
Allow S101 (assert detection) and PLC0415 (import at top-level) rules to be ignored in test files where they are standard practice.
1 parent 4dabc7d commit e8dc9ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ ignore = [
9494
[tool.ruff.lint.per-file-ignores]
9595
# Magic value used in comparison
9696
"rtslib/targetctl.py" = ["PLR2004"]
97+
# Allow assert statements in tests
98+
"tests/**/*.py" = ["S101", "PLC0415"]

0 commit comments

Comments
 (0)