Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d0f6cb

Browse files
committed
style(ruff): enable S101 check to avoid assert usage in production code
1 parent397b9f7 commit1d0f6cb

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)

[8]ページ先頭

©2009-2025 Movatter.jp