-
Notifications
You must be signed in to change notification settings - Fork 3
/
ruff.toml
32 lines (29 loc) · 667 Bytes
/
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
line-length = 120
target-version = "py311"
[lint]
exclude = [
"*.pyi",
"*_grpc.py",
"*_pb2.py",
"**/generated/*",
"./build/*",
"./libbuild/*",
"./clang-tidy-build/*",
]
ignore = [
"N803", # https://docs.astral.sh/ruff/rules/invalid-argument-name
"N806", # https://docs.astral.sh/ruff/rules/non-lowercase-variable-in-function
"E501", # https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black
"E722", # https://docs.astral.sh/ruff/rules/bare-except
]
select = [
"F", # pyflakes
# pycodestyle
"E",
"W",
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
]
[lint.pydocstyle]
convention = "google"