forked from devpi/devpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
171 lines (163 loc) · 6.73 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[tool.ruff]
exclude = [
"doc/",
]
target-version = "py37"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001", # cleanup later - variable name shadows builtin
"A002", # cleanup later - argument name shadows builtin
"A003", # ignore - class attribute name shadows builtin
"ANN", # ignore - annotations
"ARG001", # maybe cleanup later - unused function argument
"ARG002", # maybe cleanup later - unused method argument
"ARG003", # cleanup soon - unused method argument
"ARG005", # maybe cleanup later - unused lambda argument
"B007", # maybe cleanup later
"B008", # cleanup later
"B904", # maybe cleanup later
"BLE001", # cleanup soon - blind exception
"C400", # maybe cleanup later - rewrite as list comprehension
"C401", # maybe cleanup later - rewrite as set comprehension
"C402", # maybe cleanup later - rewrite as dict comprehension
"C403", # maybe cleanup later - rewrite as set comprehension
"C404", # cleanup soon - rewrite as dict comprehension
"C405", # cleanup soon - set literal instead of set call
"C408", # ignore - dict call
"C416", # cleanup soon - set instead of comprehension
"C901", # ignore - complex structure
"COM812", # cleanup later
"D", # ignore - docstrings
"DTZ001", # cleanup soon
"E501", # ignore - line too long
"E741", # ignore - ambiguous variable name
"EM101", # ignore - string literal in exception
"EM102", # ignore - f-string in exception
"ERA001", # cleanup soon
"FBT002", # cleanup soon - boolean positional argument
"FIX001", # cleanup later - fixme
"FIX002", # cleanup later - todo
"FIX003", # cleanup later - xxx
"FLY002", # maybe cleanup later - f-string instead of join
"G002", # cleanup soon - logging statement uses %
"G010", # cleanup soon - log.warn instead of log.warning
"I001", # maybe cleanup later - import block unsorted
"N", # ignore - naming
"PERF102", # cleanup soon - keys/values of dict
"PERF203", # ignore (false positive?) - try-except in loop
"PERF401", # maybe cleanup later - list comprehension
"PERF402", # maybe cleanup later - list copy
"PIE804", # cleanup later
"PIE808", # maybe cleanup later
"PLC1901", # maybe cleanup later
"PLR0911", # cleanup later
"PLR0912", # maybe cleanup later
"PLR0913", # ignore - too many arguments
"PLR0915", # maybe cleanup later
"PLR2004", # ignore - magic value comparison
"PLW2901", # maybe cleanup later
"PT001", # ignore - pytest.fixture
"PT004", # maybe cleanup later - fixture returning no value
"PT006", # maybe cleanup later - wrong type for pytest.mark.parametrize
"PT007", # maybe cleanup later - wrong type for pytest.mark.parametrize
"PT011", # cleanup soon - pytest.raises match
"PT012", # cleanup soon - pytest.raises
"PT017", # cleanup later - use pytest.raises
"PT018", # maybe cleanup later - composite assert
"PT021", # maybe cleanup later - yield instead of addfinalizer
"PT022", # maybe cleanup later - return instead of yield
"PT023", # ignore - pytest.mark.nomocking
"PTH", # ignore - pathlib
"Q", # ignore - quotes style
"RET501", # maybe cleanup later - no explicit return None
"RET502", # maybe cleanup later - implicit return None
"RET503", # maybe cleanup later - missing return
"RET504", # maybe cleanup later - unnecessary assignment before return
"RET505", # maybe cleanup later - unnecessary elif after return
"RET506", # maybe cleanup later - unnecessary elif after raise
"RET507", # maybe cleanup later - unnecessary elif after continue
"RET508", # maybe cleanup later - unnecessary else after break
"RUF005", # cleanup later
"RUF012", # cleanup later
"RUF100", # after soon to cleanup
"RSE102", # maybe cleanup later
"S101", # ignore - asserts
"S608", # cleanup soon - possible sql injection
"SIM102", # maybe cleanup later
"SIM105", # cleanup soon
"SIM108", # cleanup later
"SIM110", # cleanup soon
"SIM114", # maybe cleanup later
"SIM115", # cleanup soon
"SIM117", # cleanup later
"SLF001", # ignore - private member accessed
"TD", # ignore - todos
"TRY003", # ignore - raise vanilla args
"TRY004", # maybe cleanup later
"TRY301", # maybe cleanup later
"UP004", # cleanup later - inherit from 'object'
"UP008", # cleanup later - super
"UP012", # false positives (bug in ruff?) - unnecessary utf-8 encode
"UP015", # cleanup later - open mode parameters
"UP020", # cleanup soon - use builtin 'open'
"UP024", # maybe cleanup later - aliased errors
"UP025", # maybe cleanup later - unicode literals
"UP027", # maybe cleanup later - unpacked list comprehension
"UP031", # ignore - printf string formatting
"UP030", # cleanup later - implicit references for positional format fields
"UP032", # cleanup later - f-string instead of format
]
pyupgrade.keep-runtime-typing = true
[tool.ruff.lint.isort]
case-sensitive = true
force-single-line = true
from-first = true
lines-after-imports = 2
no-sections = true
order-by-type = false
[tool.ruff.lint.per-file-ignores]
".ci/cleanup_devpi_indices.py" = [
"INP001", # ignore - implicit namespace package
"S603", # ignore - subprocess untrusted input
"S607", # ignore - subprocess partial executable path
"T201", # ignore - print found
]
"client/devpi/hookspecs.py" = [
"ARG001", # unused function argument on hookspecs https://github.com/astral-sh/ruff/issues/9803
]
"client/testing/conftest.py" = [
"INP001", # ignore - implicit namespace package
"S603", # ignore - subprocess untrusted input
"T201", # ignore - print found
]
"server/devpi_server/hookspecs.py" = [
"ARG001", # unused function argument on hookspecs https://github.com/astral-sh/ruff/issues/9803
]
"server/test_devpi_server/plugin.py" = [
"S603", # ignore - subprocess untrusted input
"T201", # ignore - print found
]
"web/devpi_web/hookspecs.py" = [
"ARG001", # unused function argument on hookspecs https://github.com/astral-sh/ruff/issues/9803
]
"web/tests/conftest.py" = [
"INP001", # ignore - implicit namespace package
]
"*/pytest_devpi_postgresql/__init__.py" = [
"S603", # ignore - subprocess untrusted input
"S607", # ignore - subprocess partial executable path
]
"setup.py" = [
"INP001", # ignore - implicit namespace package
]
"test_*" = [
"INP001", # ignore - implicit namespace package
"S105", # ignore - possible hardcoded password
"S106", # ignore - possible hardcoded password
"S113", # ignore - requests call without timeout
"S324", # ignore - md5 - use usedforsecurity=False with Python 3.9
"S603", # ignore - subprocess untrusted input
"S607", # ignore - subprocess partial executable path
"T201", # ignore - print found
]