-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathruff.toml
40 lines (34 loc) · 854 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
33
34
35
36
37
38
39
40
extend-exclude = ["build"]
[lint]
extend-select = [
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle errors
"F", # pyflakes
"FBT", # flake8-boolean-trap
"I", # isort
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"RUF100", # unused noqa
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
extend-ignore = [
"E501", # Line too long
"B028", # function-call-in-default-argument
]
fixable = ["C4", "E", "F", "I", "UP"]
[lint.per-file-ignores]
"tests/**.py" = ["DJ008"]
[lint.isort]
known-first-party = ["grapple"]
lines-between-types = 1
lines-after-imports = 2
[format]
docstring-code-format = true