-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (46 loc) · 1.12 KB
/
pyproject.toml
File metadata and controls
54 lines (46 loc) · 1.12 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
[tool.ruff]
line-length = 88
target-version = "py313"
fix = false
show-fixes = true
exclude = [
".git",
".tox",
".venv",
"__pycache__",
"venv",
"env",
"*.env",
"migrations",
"db.sqlite3",
"build",
"dist",
"*.pyc",
]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP", "A", "D"]
extend-select = ["D400", "D401", "D415", "D417"]
ignore = ["E501","D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",]
[tool.ruff.lint.isort]
known-first-party = ["src", "config", "apps"]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["S101"]
"src/config/settings/*.py" = ["F403","F405","F811"]
"*__init__.py**" = ["F403", "F811", "F401", "I001"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
addopts = "-ra -q --cov=src --cov-report=term-missing"
testpaths = ["src"]
pythonpath = ["src"]
[tool.coverage.run]
omit = [
"src/config/**",
"src/manage.py",
"src/**/migrations/*",
"src/**/__init__.py",
"src/**/tests/*",
"src/**/tests/**",
"*/openapi.py"
]