-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (36 loc) · 869 Bytes
/
Makefile
File metadata and controls
53 lines (36 loc) · 869 Bytes
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
.PHONY: install run dev lint format typecheck test seed migrate makemigration pre-commit up down logs
install:
poetry install
run:
poetry run uvicorn app.main:create_app --factory
dev:
poetry run uvicorn app.main:create_app --factory --reload
lint:
poetry run ruff check app/
poetry run bandit -r app/
format:
poetry run ruff format app/
typecheck:
poetry run mypy app/
test:
poetry run pytest
test-e2e:
poetry run pytest tests/app/e2e/
seed:
poetry run python app/seed/run_seed.py
migrate:
poetry run alembic upgrade head
makemigration:
poetry run alembic revision --autogenerate -m "$(m)"
pre-commit:
poetry run ruff check --fix app/
poetry run ruff format app/
poetry run mypy app/
poetry run bandit -c pyproject.toml -r app/
poetry run pytest
up:
docker compose up --build
down:
docker compose down
logs:
docker compose logs -f