-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
80 lines (70 loc) · 1.23 KB
/
ruff.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
target-version = "py311"
[lint]
select = [
"I",
"W291",
"W292",
"T100",
"YTT",
"UP009",
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
"FBT",
"COM",
"C4",
"DTZ",
"EM",
"EXE",
"FA",
"ISC",
"ICN",
"LOG",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"TID",
"INT",
"PTH",
"TD",
"PD",
"TRY",
"FLY",
"NPY",
"PERF",
"RUF",
]
ignore = ["E501", "ISC002", "ISC001",
"COM819", "COM812", "Q003", "Q002", "Q001", "Q000",
"D300", "D206", "E117", "E114", "E111", "W191",
"B008", "SIM300", "S101", "RET505", "SLF001", "DTZ005", "RET506"
]
exclude = ["typings/*", "prepper/tests/*"]
[lint.per-file-ignores]
"__init__.py" = ["F401", "E402", "I001", "I002"]
"__init__.pyi" = ["F401", "E402", "I001", "I002"]
[format]
docstring-code-format = true
line-ending = "lf"
[lint.isort]
from-first = false
force-sort-within-sections = true
required-imports = ["from __future__ import annotations"]
[lint.flake8-bugbear]
extend-immutable-calls = ["pylatex.utils.NoEscape"]
[lint.flake8-self]
ignore-names = []