Skip to content

Commit 1960970

Browse files
Lee-Wbearomorphism
authored andcommitted
style(ruff): enable S101 check to avoid assert usage in production code
1 parent 82caf4b commit 1960970

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
@@ -206,11 +206,13 @@ select = [
206206
"RUF022",
207207
# unused-noqa
208208
"RUF100",
209+
# Checks for uses of the assert keyword.
210+
"S101",
209211
]
210212
ignore = ["E501", "D1", "D415"]
211213

212214
[tool.ruff.lint.per-file-ignores]
213-
"tests/*" = ["ANN"]
215+
"tests/*" = ["ANN", "S101"]
214216

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

0 commit comments

Comments
 (0)