Skip to content

Commit

Permalink
Merge pull request #1426 from sot/taldcroft-patch-1
Browse files Browse the repository at this point in the history
Update ruff-base.toml to discourage using assert in code except for tests
  • Loading branch information
taldcroft authored Oct 30, 2024
2 parents 42945af + 3d840fe commit ac70d31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/ruff-base.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ lint.extend-select = [
"ARG001", # Unused function argument
"RSE102", # Unnecessary parentheses on raised exception
"PERF401", # Use a list comprehension to create a transformed list
"S101", # Use of `assert` detected
]

lint.ignore = [
Expand All @@ -56,4 +57,4 @@ max-line-length = 100 # E501 reports lines that exceed the length of 100.
# - D205: Don't worry about test docstrings
# - ARG001: Unused function argument false positives for some fixtures
# - E501: Line-too-long
"**/tests/test_*.py" = ["D205", "ARG001", "E501"]
"**/tests/test_*.py" = ["D205", "ARG001", "E501", "S101"]

0 comments on commit ac70d31

Please sign in to comment.