# HG changeset patch # User John Rouillard # Date 1734820264 18000 # Node ID c41e669a655ce0a91deb460568fcd35be4d4bf5b # Parent 1cd6d42afddaafc56a35037c9ba3feae7dc1366a chore(ruff): update scanning rules. diff -r 1cd6d42afdda -r c41e669a655c pyproject.toml --- 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"]