aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 97d9f3286b0696efd7bb6818fe9814213b8d57f5 (plain) (blame)
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
.PHONY: all install relock lock lockci lint lintdeps precommit test retest seed

all: install precommit lint

install:
	poetry install --sync

relock:
	poetry lock
	@poetry export --only main --output thallium-backend/requirements.txt

lintdeps:
	@pre-commit run --files pyproject.toml poetry.lock thallium-backend/requirements.txt

lockci: relock lintdeps

lock: relock install lintdeps

lint:
	poetry run pre-commit run --all-files

precommit:
	poetry run pre-commit install

test:
	pytest --ff thallium-backend

retest:
	pytest --lf thallium-backend

seed:
	cd thallium-backend && poetry run python -m scripts.seed

revision:
	cd thallium-backend && poetry run alembic revision --autogenerate -m CHANGEME