generated from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
84 lines (76 loc) · 1.44 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
81
82
83
84
extend-include = ["*.ipynb"]
line-length = 119
indent-width = 2
target-version = "py312"
fix = true
[format]
preview = true
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = true
[lint]
select = [
"F",
"G", # flake8-logging-format
"PERF", # perflint
"RUF", # Ruff-specific rules
"W6",
"I",
"E71",
"E72",
"E112",
"E113",
# "E124",
"E203",
"E272",
# "E303",
# "E304",
# "E501",
# "E502",
"E702",
"E703",
"E731",
"W191",
"W291",
"W293",
"UP039", # unnecessary-class-parentheses
]
ignore = [
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"ANN", # Use mypy
"PLR2004", # magic value to use constant
"E501", # ignore line length violation
"E401", # ignore multiple line import
"E702",
"RUF012", # mutable attributes to be used with ClassVar
"E701", # multiple statement on single line
"RUF012",
"ANN", # Mypy is better at this
"E722",
]
[lint.isort]
split-on-trailing-comma = false
[lint.flake8-type-checking]
exempt-modules = ["typing", "typing_extensions"]
runtime-evaluated-decorators = [
"attrs.define",
"attrs.frozen",
"trait",
"attr.attrs",
'attr.define',
'_attr.define',
'attr.frozen',
]
[lint.pydocstyle]
convention = "google"
[lint.pycodestyle]
ignore-overlong-task-comments = true
max-line-length = 119
[lint.flake8-quotes]
avoid-escape = false
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "single"