changeset 8235:c41e669a655c

chore(ruff): update scanning rules.
author John Rouillard <rouilj@ieee.org>
date Sat, 21 Dec 2024 17:31:04 -0500
parents 1cd6d42afdda
children 2d0bd038fc5e
files pyproject.toml
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyproject.toml	Sat Dec 21 16:50:00 2024 -0500
+++ b/pyproject.toml	Sat Dec 21 17:31:04 2024 -0500
@@ -80,6 +80,8 @@
 ignore = [ 
    # raise from except hander with none or chaining; only python3
    "B904",
+   # trailing commas are getting a bit excessive
+   "COM812",
    # ### before comments is fine
    "E266",
    # ignore double vs. single quotes
@@ -95,6 +97,8 @@
    #"RET506",
    # use *list to expand; only python 3
    "RUF005",
+   # not using typing, so not marking mutable class values
+   "RUF012",
    # do not use contextlib.suppress rather than except: pass to suppress
    # exception. contextlib doesn't work in python2 and is slower
    "SIM105",
@@ -106,7 +110,9 @@
 [tool.ruff.lint.per-file-ignores]
 "roundup/anypy/*.py" = ["RET505", "RET506"]
 "roundup/dehtml.py" = ["E501"]
-"roundup/rest.py" = ["E501"]
+# ruff is reporting unused parameters. Standard calling sequence
+# for all methods means some won't be used. Suppress alert ARG002.
+"roundup/rest.py" = ["ARG002", "E501"]
 "roundup/support.py" = ["E401"]
 "roundup/security.py" = ["E701"]
 "roundup/date.py" = ["E231", "E701"]

Roundup Issue Tracker: http://roundup-tracker.org/