-
-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathruff-strict.toml
More file actions
92 lines (83 loc) · 2.87 KB
/
ruff-strict.toml
File metadata and controls
92 lines (83 loc) · 2.87 KB
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
exclude = [
"doc/",
]
[lint]
future-annotations = true
select = ["ALL"]
ignore = [
"ANN", # maybe cleanup later - annotations
"C408", # ignore - dict call
"C901", # ignore - complex structure
"COM812", # ignore - ruff format
"D", # ignore - docstrings
"E501", # ignore - line too long
"E741", # ignore - ambiguous variable name
"EM101", # ignore - string literal in exception
"EM102", # ignore - f-string in exception
"N", # ignore - naming
"PERF203", # ignore (false positive?) - try-except in loop
"PLC0415", # ignore - import at top-level of file
"PLR0913", # ignore - too many arguments
"PLR0915", # ignore - too many statements
"PLR2004", # ignore - magic value comparison
"PTH", # ignore - pathlib
"Q", # ignore - quotes style
"RUF100", # after soon to cleanup
"S101", # ignore - asserts
"SLF001", # ignore - private member accessed
"TD", # ignore - todos
"TRY003", # ignore - raise vanilla args
"UP031", # maybe cleanup later - printf string formatting
]
pyupgrade.keep-runtime-typing = true
[lint.flake8-type-checking]
strict = true
[lint.isort]
case-sensitive = true
force-single-line = true
from-first = true
lines-after-imports = 2
no-sections = true
order-by-type = false
[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
"UP036", # maybe cleanup later - version check obsolete for target version
]
"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
]
"test_*" = [
"INP001", # ignore - implicit namespace package
"S105", # ignore - possible hardcoded password
"S106", # ignore - possible hardcoded password
"S113", # ignore - requests call without timeout
"S603", # ignore - subprocess untrusted input
"S607", # ignore - subprocess partial executable path
"T201", # ignore - print found
]