Skip to content

Commit 3c62543

Browse files
committed
style(ruff): enable S101 check to avoid assert usage in production code
1 parent 08aad19 commit 3c62543

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,13 @@ select = [
207207
"RUF022",
208208
# unused-noqa
209209
"RUF100",
210+
# Checks for uses of the assert keyword.
211+
"S101",
210212
]
211213
ignore = ["E501", "D1", "D415"]
212214

213215
[tool.ruff.lint.per-file-ignores]
214-
"tests/*" = ["ANN"]
216+
"tests/*" = ["ANN", "S101"]
215217

216218
[tool.ruff.lint.isort]
217219
known-first-party = ["commitizen", "tests"]

0 commit comments

Comments
 (0)