-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
39 lines (35 loc) · 1.34 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
[project]
name = "huntwords"
version = "0.1.0"
description = "Default template for PDM package"
authors = [{ name = "Kevin McWhirter", email = "[email protected]" }]
dependencies = [
"docopt>=0.6.2",
"fastapi>=0.110.1",
"jmespath>=1.0.1",
"redis>=5.0.3",
"requests>=2.31.0",
"uvicorn[standard]>=0.29.0",
]
requires-python = ">=3.12"
readme = "README.md"
license = { text = "MIT" }
[tool.pdm]
distribution = false
[tool.pdm.dev-dependencies]
dev = ["autopep8>=2.1.0", "pytest>=8.1.1", "pytest-cov>=5.0.0"]
[tool.pdm.scripts]
create.shell = "pdm venv remove -y in-project; pdm install --check --no-editable"
clean.shell = "find . -type d -name __pycache__ -exec rm -fr {} \\;;for d in ${TO_DEL};do echo $d;rm -fr $d;done"
clean.env = { TO_DEL = "build .coverage coverage.xml log .mypy_cache .pdm-build __pycache__ .pytest_cache src/qwirkle.egg-info .tox dist src/build" }
clean.help = "Clean build artifacts"
envclean.shell = "for d in ${TO_DEL};do echo $d;rm -fr $d;done"
envclean.env = { TO_DEL = "ui/node_modules .venv" }
envclean.help = "Clean environment"
allclean.composite = [ "clean", "envclean" ]
start = "python -m huntwordsapi"
build.shell = "./etc/wrap_for_compose.sh docker compose build"
compose.shell = "docker compose up"
up.composite = [ "build", "compose" ]
down.shell = "docker compose down"
refresh = "./etc/refresh_puzzleboards.sh"