-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathruff.toml
More file actions
65 lines (56 loc) · 1.03 KB
/
ruff.toml
File metadata and controls
65 lines (56 loc) · 1.03 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
target-version = "py38"
line-length = 120
extend-exclude = [
"migrations",
]
[format]
quote-style = "single"
exclude = []
[lint]
select = [
"B", # possible bugs
"BLE", # broad exception
"C4", # comprehensions
"DTZ", # work with datetimes
"E", # code style
"ERA", # commented code
"EXE", # check executables
"F", # misc
"FA", # future annotations
"FBT", # booleans
"FURB", # modernizing
"G", # logging format
"I", # imports
"ICN", # import conventions
"INT", # i18n
"ISC", # stringc concat
"PERF", # perfomance
"PIE", # misc
"PLC", # misc
"PLE", # misc err
"PT", # pytest
"PTH", # pathlib
"PYI", # typing
"RSE", # exc raise
"SLOT", # slots related
"TC", # typing
"UP", # py upgrade
]
ignore = []
[lint.extend-per-file-ignores]
"demo/*" = [
"ERA001",
"B904",
"F401",
]
"src/*" = [
"FA100",
]
"src/sitetree/sitetreeapp.py" = [
"TC001",
]
"tests/*" = [
"E731",
"PLC0415",
"C408",
]