Skip to content

Commit

Permalink
[MNT] ruff linting - allow use of assert (S101) (#1701)
Browse files Browse the repository at this point in the history
Currently, pre-commit trips over uses of `assert` which exist in
non-test code across the code base.

This is often discouraged, but a de-facto part of the current code base,
so for now we should simply skip the corresponding linting rule.
  • Loading branch information
fkiraly authored Oct 22, 2024
1 parent 7f3de24 commit b8c3980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extend-ignore = [
"C408", # Unnecessary dict call - rewrite as a literal.
"C409", # Unnecessary list passed to tuple() - rewrite as a tuple literal.
"F401", # unused imports
"S101", # use of assert
]

[tool.ruff.lint.isort]
Expand Down

0 comments on commit b8c3980

Please sign in to comment.