-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ruff.toml
More file actions
47 lines (43 loc) · 769 Bytes
/
.ruff.toml
File metadata and controls
47 lines (43 loc) · 769 Bytes
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
target-version = "py311"
line-length = 120
[lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"RUF012", # mutable-class-default
]
[lint.isort]
known-first-party = [
"isimip_data"
]
section-order = [
"future",
"standard-library",
"pytest",
"django",
"rest_framework",
"third-party",
"first-party",
"local-folder"
]
[lint.isort.sections]
pytest = ["pytest"]
django = ["django"]
rest_framework = ["rest_framework"]
[lint.per-file-ignores]
"config/settings/*.py" = [
"F401",
"F403",
"F405",
"F821",
]