Skip to content

Commit b7b99a0

Browse files
committed
Update list of rules ignored in test files
1 parent fc49e4d commit b7b99a0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,8 @@ select = ["ALL"]
5656

5757
[tool.ruff.lint.extend-per-file-ignores]
5858
"tests/*.py" = [
59-
"ANN001",
60-
# at least this three should be fine in tests:
61-
"S101", # asserts allowed in tests...
62-
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
63-
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
64-
# The below are debateable
65-
"PLR2004", # Magic value used in comparison, ...
66-
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
59+
"ANN001", # missing-type-function-argument
60+
"FBT", # flake8-boolean-trap
61+
"PLR2004", # magic-value-comparison
62+
"S101", # assert
6763
]

0 commit comments

Comments
 (0)