Skip to content

Commit fd3d8e1

Browse files
committed
style(ruff): enable S101 check to avoid assert usage in production code
1 parent e030c42 commit fd3d8e1

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
@@ -208,11 +208,13 @@ select = [
208208
"RUF022",
209209
# unused-noqa
210210
"RUF100",
211+
# Checks for uses of the assert keyword.
212+
"S101",
211213
]
212214
ignore = ["E501", "D1", "D415"]
213215

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

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

0 commit comments

Comments
 (0)