Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (58 loc) · 1.55 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (58 loc) · 1.55 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
[project]
name = "medication-log-api"
version = "0.1.0"
description = "REST API for a personal medication and health condition log, with read-only sharing between accounts."
readme = "README.md"
authors = [
{ name = "Thaís Moreira"}
]
requires-python = ">=3.14"
dependencies = [
"django-rest-knox>=5.1.0",
"django[argon2]>=6.1",
"djangorestframework>=3.18.3",
"drf-spectacular>=0.30.0",
"environs[django]>=15.1.0",
"granian>=2.8.2",
"psycopg[binary]>=3.3.5",
]
[project.scripts]
medication-log-api = "medication_log_api:main"
[build-system]
requires = ["uv_build>=0.12.6,<0.13.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"django-stubs[compatible-mypy]>=6.1.0",
"djangorestframework-stubs[compatible-mypy]>=3.18.1",
"mypy>=2.3.1",
"pre-commit>=4.6.2",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"pytest-django>=4.14.0",
"ruff>=0.16.5",
]
[tool.ruff]
line-length = 88
extend-exclude = ["migrations"]
[tool.ruff.lint]
extend-select = ["I", "UP", "C4"]
[tool.ruff.format]
[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
python_version = "3.14"
files = ["src"]
strict = true
[[tool.mypy.overrides]]
module = ["knox.*"]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "config.settings"
[tool.pytest]
DJANGO_SETTINGS_MODULE = "config.settings"
pythonpath = ["src"]
testpaths = ["src"]
addopts = ["--strict-markers", "-v", "--cov", "--cov-report=term-missing"]
[tool.coverage.run]
source = ["src"]
omit = ["*/migrations/*", "*/tests/*", "src/manage.py"]