Repository navigation
Expand file tree
/
Copy pathruff.toml
More file actions
123 lines (118 loc) · 1.93 KB
/
Copy pathruff.toml
File metadata and controls
123 lines (118 loc) · 1.93 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
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
# Ruff config for this repo's own Python — the four stdlib-only prek hook
# scripts under skills/strictify/scripts/ and their regression tests.
#
# Uses the same rules as skills/strictify/references/pyproject-strict.md to check
# the bundled scripts against the policy strictify installs in target repos.
line-length = 110
[lint]
preview = true
explicit-preview-rules = true
select = [
"A",
"ANN001",
"ANN002",
"ANN003",
"ANN201",
"ANN202",
"ANN204",
"ANN205",
"ANN206",
"ANN401",
"ARG",
"ASYNC",
"B",
"BLE",
"C4",
"COM818",
"C90",
"D402",
"D414",
"D418",
"D419",
"DOC102",
"DOC202",
"DOC403",
"DTZ",
"E",
"ERA",
"EXE",
"F",
"FA",
"FBT",
"FURB101",
"FURB103",
"FURB122",
"FURB129",
"FURB132",
"FURB157",
"FURB161",
"FURB162",
"FURB168",
"FURB169",
"FURB171",
"FURB177",
"FURB181",
"FURB188",
"G",
"I",
"INP",
"ISC004",
"LOG",
"N",
"PERF",
"PGH",
"PIE",
"PLC",
"PLE",
"PLR0124",
"PLR0133",
"PLR0206",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR1702",
"PLR1704",
"PLR1711",
"PLR1714",
"PLR1716",
"PLR1722",
"PLR1733",
"PLR1736",
"PLR5501",
"PLW",
"PT",
"PTH",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TC",
"TID",
"TRY004",
"TRY201",
"TRY203",
"TRY300",
"TRY400",
"TRY401",
"UP",
"W",
"YTT",
]
ignore = [
"E501", # line-length deferred to the formatter, per the shipped config
"TRY003", # avoid exception-class ceremony for simple domain errors
]
[lint.mccabe]
max-complexity = 15
[lint.per-file-ignores]
"skills/strictify/scripts/**/*.py" = ["T201"]
"tests/**/*.py" = ["PT"]
"tools/check_category_count.py" = ["T201"]
[format]
quote-style = "double"