comparison pyproject.toml @ 8235:c41e669a655c

chore(ruff): update scanning rules.
author John Rouillard <rouilj@ieee.org>
date Sat, 21 Dec 2024 17:31:04 -0500
parents 736f769b48c8
children 8a875e0bf749
comparison
equal deleted inserted replaced
8234:1cd6d42afdda 8235:c41e669a655c
78 ] 78 ]
79 79
80 ignore = [ 80 ignore = [
81 # raise from except hander with none or chaining; only python3 81 # raise from except hander with none or chaining; only python3
82 "B904", 82 "B904",
83 # trailing commas are getting a bit excessive
84 "COM812",
83 # ### before comments is fine 85 # ### before comments is fine
84 "E266", 86 "E266",
85 # ignore double vs. single quotes 87 # ignore double vs. single quotes
86 "Q000", "Q001", "Q002", 88 "Q000", "Q001", "Q002",
87 # do not replace x in (a,b) with x in {a,b} (set). python 3.2 89 # do not replace x in (a,b) with x in {a,b} (set). python 3.2
93 # 506: same but with a raise rather than return 95 # 506: same but with a raise rather than return
94 #"RET505", 96 #"RET505",
95 #"RET506", 97 #"RET506",
96 # use *list to expand; only python 3 98 # use *list to expand; only python 3
97 "RUF005", 99 "RUF005",
100 # not using typing, so not marking mutable class values
101 "RUF012",
98 # do not use contextlib.suppress rather than except: pass to suppress 102 # do not use contextlib.suppress rather than except: pass to suppress
99 # exception. contextlib doesn't work in python2 and is slower 103 # exception. contextlib doesn't work in python2 and is slower
100 "SIM105", 104 "SIM105",
101 ] 105 ]
102 106
104 max-complexity = 50 108 max-complexity = 50
105 109
106 [tool.ruff.lint.per-file-ignores] 110 [tool.ruff.lint.per-file-ignores]
107 "roundup/anypy/*.py" = ["RET505", "RET506"] 111 "roundup/anypy/*.py" = ["RET505", "RET506"]
108 "roundup/dehtml.py" = ["E501"] 112 "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"]
110 "roundup/support.py" = ["E401"] 116 "roundup/support.py" = ["E401"]
111 "roundup/security.py" = ["E701"] 117 "roundup/security.py" = ["E701"]
112 "roundup/date.py" = ["E231", "E701"] 118 "roundup/date.py" = ["E231", "E701"]
113 "roundup/backends/back_sqlite.py" = ["E203"] 119 "roundup/backends/back_sqlite.py" = ["E203"]
114 120

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