-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
.ruff.toml
84 lines (78 loc) · 1.38 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
target-version = "py39" # Pin Ruff to Python 3.9
line-length = 88
output-format = "full"
extend-exclude = [
"noxfile.py",
]
[lint]
preview = true
ignore = [
"D100",
"D101",
"D102",
"D103",
"D105",
"D107",
"E203",
# "W503", # unimplemented in Ruff (as of 2024-04-16)
]
select = [
# flake8-builtins ('A')
"A",
# flake8-unused-arguments ('ARG')
"ARG",
# flake8-async ('ASYNC')
"ASYNC",
# flake8-bugbear ('B')
"B",
# flake8-comprehensions ('C4')
"C4",
# mccabe ('C90')
"C901",
# pydocstyle ('D')
"D",
# pycodestyle ('E')
"E",
# pyflakes ('F')
"F",
# isort ('I')
"I",
# pep8-naming ('N')
"N",
# perflint ('PERF')
"PERF",
# pygrep-hooks ('PGH')
"PGH",
# flake8-pytest-style ('PT')
"PT",
# flake8-quotes ('Q')
"Q",
# flake8-return ('RET')
"RET",
# flake8-raise ('RSE')
"RSE",
# flake8-simplify ('SIM')
"SIM",
# pyupgrade ('UP')
"UP",
# pycodestyle ('W')
"W",
]
[lint.pydocstyle]
convention = "pep257"
[lint.per-file-ignores]
"tests/*" = [
"E501",
"S101", # whitelist ``assert`` for tests
"T201", # whitelist ``print`` for tests
]
[lint.flake8-quotes]
inline-quotes = "double"
[lint.isort]
forced-separate = [
"tests",
]
[format]
preview = true
quote-style = "double"
docstring-code-format = true