Skip to content

Commit 94b5628

Browse files
committed
chore(ruff): update scanning rules.
1 parent 517673b commit 94b5628

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ select = [
8080
ignore = [
8181
# raise from except hander with none or chaining; only python3
8282
"B904",
83+
# trailing commas are getting a bit excessive
84+
"COM812",
8385
# ### before comments is fine
8486
"E266",
8587
# ignore double vs. single quotes
@@ -95,6 +97,8 @@ ignore = [
9597
#"RET506",
9698
# use *list to expand; only python 3
9799
"RUF005",
100+
# not using typing, so not marking mutable class values
101+
"RUF012",
98102
# do not use contextlib.suppress rather than except: pass to suppress
99103
# exception. contextlib doesn't work in python2 and is slower
100104
"SIM105",
@@ -106,7 +110,9 @@ max-complexity = 50
106110
[tool.ruff.lint.per-file-ignores]
107111
"roundup/anypy/*.py" = ["RET505", "RET506"]
108112
"roundup/dehtml.py" = ["E501"]
109-
"roundup/rest.py" = ["E501"]
113+
# ruff is reporting unused parameters. Standard calling sequence
114+
# for all methods means some won't be used. Suppress alert ARG002.
115+
"roundup/rest.py" = ["ARG002", "E501"]
110116
"roundup/support.py" = ["E401"]
111117
"roundup/security.py" = ["E701"]
112118
"roundup/date.py" = ["E231", "E701"]

0 commit comments

Comments
 (0)