-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (104 loc) · 2.58 KB
/
pyproject.toml
File metadata and controls
116 lines (104 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
[project]
name = "api"
version = "0.1.0"
description = "API repository."
authors = [ { name = "Niels Degrande", email = "niels@degran.de" } ]
readme = "README.md"
requires-python = ">=3.13,<4.0"
dependencies = [
"aiofiles==25.1.0",
"alembic==1.18.4",
"async-lru==2.3.0",
"asyncpg==0.31.0",
"bcrypt==5.0.0",
"coloredlogs==15.0.1",
"fastapi==0.136.0",
"gcloud-aio-storage==9.6.4",
"google-cloud-storage==3.10.1",
"pydantic==2.13.2",
"python-box==7.4.1",
"python-dotenv==1.2.2",
"pyyaml==6.0.3",
"sqlalchemy[asyncio]==2.0.49",
"uvicorn[standard]==0.44.0",
]
[project.scripts]
api = "api.__main__:main"
[dependency-groups]
dev = [
"add-trailing-comma",
"black",
"codespell",
"ipython",
"isort",
"pre-commit",
"ruff",
"sqlalchemy2-stubs",
"sqlfluff",
"types-PyYAML",
"vulture",
]
test = [
"httpx==0.28.1",
"pip-audit==2.10.0",
"pre-commit==4.5.1",
"pyright==1.1.408",
"pytest==9.0.3",
"pytest-asyncio==1.3.0",
"pytest-cov==7.1.0",
"pytest-mock==3.15.1",
"pytest-timeout==2.4.0",
"pytest-xdist==3.8.0",
]
[tool.pytest.ini_options]
timeout = "60"
addopts = [
"--cov-report=html:test-reports/htmlcov",
"--cov-report=term-missing:skip-covered",
"--cov-report=xml:test-reports/coverage.xml",
"--cov=api",
"--junitxml=test-reports/junit/junit.xml",
"--no-cov-on-fail",
"--strict-markers",
"--verbose",
"-r sxX",
]
cache_dir = ".cache"
filterwarnings = [ "error" ]
testpaths = "tests"
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_also = [
# Do not complain if tests do not hit defensive assertion code.
"raise AssertionError",
"raise NotImplementedError",
# Do not complain if non-runnable code is not run.
"if __name__ == .__main__.:",
]
ignore_errors = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.ruff]
target-version = "py313"
[tool.ruff.lint]
select = [ "ALL" ]
ignore = [
"COM812", # missing-trailing-comma not needed due to use of formatter.
"D203", # one-blank-line-before-class (incompatible with D211).
"D213", # multi-line-summary-second-line (incompatible with D212).
# Do not complain about TODOs with missing author or link.
"FIX002",
"TD002",
"TD003",
]
[tool.ruff.lint.per-file-ignores]
# Do not complain if __init__.py files have unused imports.
"__init__.py" = [ "F401" ]
# Do not complain if tests use the assert keyword.
"tests/*" = [ "S101" ]
[tool.uv]
default-groups = []
[build-system]
requires = [ "hatchling" ]
build-backend = "hatchling.build"