-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (118 loc) · 2.58 KB
/
pyproject.toml
File metadata and controls
130 lines (118 loc) · 2.58 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[project]
name = "hellopy-backend"
version = "0.1.0"
description = "hellopy-backend"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"django>=5.2.6",
"django-jazzmin>=3.0.1",
"djangorestframework>=3.15.2",
"rich>=13.9.4",
"pillow>=11.1.0",
"django-ckeditor-5",
"django-filter>=25.1",
"beautifulsoup4>=4.13.3",
"django-storages>=1.14.6",
"boto3>=1.37.33",
"django-environ>=0.12.0",
]
[tool.ruff]
target-version = "py312"
extend-exclude = [
"**/*.yaml",
"**/.gitignore",
"**/.ruff_cache/*",
"**/.mypy_cache.*",
"**/__pycache__/*",
"**/assets/*",
"**/.vscode/*",
"**/.git/*",
"**/.idea/*",
"**/temp/*",
"**/*venv*/*",
]
line-length = 100
fix = true
indent-width = 4
[tool.ruff.lint]
select = ["I", "E4", "E7", "E9", "F"]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
pythonpath = ". src"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
markers = [
"slow: mark tests that take a long time to run",
"unit: mark tests that are unit tests",
"feature: mark tests that are feature tests",
"e2e: mark tests that are end-to-end tests",
]
filterwarnings = [
"ignore::django.utils.deprecation.RemovedInDjango60Warning"
]
[tool.pytest-watcher]
runner = "pytest"
delay = 0.2
clear = true
now = false
runner_args = []
patterns = ["*.py"]
ignore_patterns = [
"apps.py",
"admin.py",
"urls.py",
"asgi.py",
"wsgi.py",
"swagger.py",
"**/migrations/*.py",
]
[tool.coverage.run]
branch = true
omit = [
"admin.py",
"urls.py",
"asgi.py",
"wsgi.py",
"swagger.py",
"**/migrations/*.py",
"src/config/*",
"apps.py",
"test*.py",
]
[tool.coverage.report]
exclude_lines = ["pragma: no cover"]
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"def __str__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
[tool.coverage.html]
skip_empty = true
[dependency-groups]
dev = [
"drf-spectacular>=0.28.0",
"pre-commit>=4.1.0",
"pytest-cov>=6.0.0",
"pytest-django>=4.10.0",
"pytest-watcher>=0.4.3",
"ruff>=0.9.4",
]