-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 873 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (27 loc) · 873 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
run:
uv run uvicorn src.main:app --reload --forwarded-allow-ips='*' --proxy-headers --host 0.0.0.0 --port 8000 --workers 4
run_trip_tip_backend_in_container:
docker compose build
docker compose up --abort-on-container-exit && docker compose rm -fsv
lint:
uv run ruff format .
uv run ruff check . --fix
git ls-files -m | xargs git add
uv run ruff check .
install_dependents:
uv install
uv shell
uv run pre-commit install
# Run pytest with correct environment, otherwise tests will fail:
test:
MODE=TEST SERVICE_NAME=pytest uv run pytest
# Alembic block:
# To create a new migration, run the following command:
makemigrations:
uv run alembic revision --autogenerate
# To apply the migration, run the following command:
migrate:
uv run alembic upgrade head
# To revert last migration, run the following command:
revert_migration:
uv run alembic downgrade -1