-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (73 loc) · 1.41 KB
/
pyproject.toml
File metadata and controls
80 lines (73 loc) · 1.41 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
[project]
name = "simple-bank"
version = "0.1.0"
description = "Pit-project with basic bank account functionality."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"django>=5.2.8",
"django-cors-headers>=4.9.0",
"django-filter>=25.2",
"djangorestframework>=3.16.1",
"djangorestframework-simplejwt>=5.5.1",
"gunicorn>=23.0.0",
"psycopg2-binary>=2.9.11",
"tzdata>=2025.2",
]
[dependency-groups]
lint = [
"mypy>=1.19.0",
"ruff>=0.14.7",
]
test = [
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"pytest-django>=4.11.1",
"pytest-env>=1.2.0",
]
[tool.ruff]
line-length = 120
exclude = [
"*/migrations/*"
]
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"PLR2004",
"D",
"RUF012",
"DJ008",
"COM812",
]
exclude = [
"*/migrations/*"
]
per-file-ignores = { "tests/*.py" = ["S101"] }
[tool.mypy]
disable_error_code = ["import-untyped"]
exclude = ['migrations/']
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report="
env = [
"ENV=test",
"DJANGO_SECRET_KEY=test_secret_key",
]
DJANGO_SETTINGS_MODULE = "simplebank.settings"
python_files = ["test_*.py", "*_test.py"]
[tool.coverage.run]
branch = true
omit = [
"*/migrations/*",
"./venv/*",
".git/*",
"*/tests/*",
"manage.py",
"wsgi.py",
"asgi.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]