-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (74 loc) · 2.01 KB
/
pyproject.toml
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
[tool]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"pytest>=7.3.1",
"ruff>=0.0.265",
"mypy>=1.3.0",
"pre-commit>=2.21.0",
"xenon>=0.9.0",
"pytest-cov>=4.0.0",
"coverage[toml]>=7.2.5",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.10.0",
"mock-alchemy>=0.2.6",
]
[tool.pdm.scripts]
lint = "ruff check src"
test = "pytest src"
type_check = "mypy src"
all = {composite = ["lint", "test", "type_check"]}
cover = "pytest --cov=src --cov-report term"
cover_html = "pytest --cov=src --cov-report html"
server.cmd = "gunicorn traffcap.server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --preload --bind 0.0.0.0:9669"
server.env = { "PYTHONPATH" = "src" }
docker_build = "docker build --no-cache --tag traffcap --progress plain ."
docker_shell = "docker run --entrypoint /bin/sh -p 9669:9669 -it traffcap"
# Generate the baseline schema from models
baseline_schema = "alembic --config=src/alembic.ini revision --autogenerate --rev-id 0.0.1 -m baseline"
[tool.ruff]
line-length=119
[project]
name = "traffcap"
version = "0.1.0"
description = "A RequestBin like application using FastAPI"
authors = [
{name = "Chris Read", email = "[email protected]"},
]
dependencies = [
"fastapi>=0.95.1",
"uvicorn[standard]>=0.22.0",
"gunicorn>=20.1.0",
"sqlalchemy>=2.0.12",
"alembic>=1.10.4",
"websockets>=11.0.2",
"click>=8.1.3",
"aiosqlite>=0.19.0",
"pymysql>=1.0.3",
"aiomysql>=0.2.0",
"jinja2>=3.1.2",
"pydantic-settings>=2.0.2",
"pydanja>=0.1.0",
"dpath>=2.1.6",
"sqlmodel>=0.0.22",
]
requires-python = ">=3.9"
# readme = "README.md"
license = {file = "LICENSE"}
[project.scripts]
traffcap = "traffcap.server:cli"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
package-dir = "src"
[tool.mypy]
[[tool.mypy.overrides]]
module = [
"gunicorn.app.base",
"pydantic_jsonapi",
"mock_alchemy.mocking"
]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope="function"