-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
49 lines (40 loc) · 934 Bytes
/
pyproject.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
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings"
addopts = [
"--tb=short",
"--fail-on-template-vars",
]
norecursedirs = ["media", "venv", "node_modules", ".direnv", ".git"]
[tool.ruff]
target-version = "py311"
line-length = 120
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"C", # flake8-comprehensions
]
ignore = [
"D1", # Missing docstrings
]
[tool.ruff.per-file-ignores]
"*/tests/**/test_*.py" = [
"S",
]
"*/baker_recipes.py" = [
"S",
]
[tool.ruff.isort]
combine-as-imports=true
split-on-trailing-comma=true
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
force-wrap-aliases=true
[tool.ruff.isort.sections]
django = ["django"]
[tool.ruff.pydocstyle]
convention = "google"