-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpyproject.toml
More file actions
58 lines (53 loc) · 1.05 KB
/
pyproject.toml
File metadata and controls
58 lines (53 loc) · 1.05 KB
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
[project]
name = "rdmo-app"
version = "0"
requires-python = ">=3.9,<3.13"
[tool.black]
line-length = 120
skip-string-normalization = true
target_version = ["py39", "py310", "py311"]
[tool.ruff]
target-version = "py39"
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
]
lint.ignore = [
"B006", # mutable-argument-default
"B007", # unused-loop-control-variable
"B018", # useless-expression
"RUF012", # mutable-class-default
]
[tool.ruff.lint.isort]
section-order = [
"future",
"standard-library",
"pytest",
"django",
"rest_framework",
"third-party",
"rdmo",
"first-party",
"local-folder"
]
[tool.ruff.lint.isort.sections]
pytest = ["pytest"]
django = ["django"]
rest_framework = ["rest_framework"]
rdmo = ["rdmo"]
[tool.ruff.lint.per-file-ignores]
"config/settings/*.py" = [
"F401",
"F403",
"F405",
"F821",
]