-
-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy path.ruff.toml
66 lines (57 loc) · 1.39 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
target-version = "py39" # Pin Ruff to Python 3.9
line-length = 100
output-format = "full"
[format]
preview = true
quote-style = "double"
[lint]
preview = true
ignore = [
"UP031", # Use format specifiers instead of percent format
]
select = [
"C4", # flake8-comprehensions
# "B", # flake8-bugbear
# "D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"LOG", # flake8-logging
# "N", # pep8-naming
"PERF", # perflint
"PGH", # pygrep-hooks
"PT", # flake8-pytest-style
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
]
[lint.per-file-ignores]
"breathe/parser/{compound,index}super.py" = [
"E266", # Too many leading `#` before block comment
]
"examples/doxygen/pyexample.py" = [
"E266", # Too many leading `#` before block comment
]
[lint.flake8-quotes]
inline-quotes = "double"
[lint.flake8-type-checking]
exempt-modules = []
strict = true
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.isort]
forced-separate = [
"tests",
]
required-imports = [
"from __future__ import annotations",
]
[lint.pydocstyle]
convention = "pep257"
ignore-decorators = ["typing.overload"]
ignore-var-parameters = true