File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11default : install lint build test
22
3- # down all app containers
43down :
54 docker compose down --remove-orphans
65
7- # run shell in container
86sh :
97 docker compose run --service-ports application bash
108
11- # run pytest with arguments
129test * args : down && down
1310 docker compose run application sh -c " sleep 1 && uv run alembic downgrade base && uv run alembic upgrade head && uv run pytest {{ args }} "
1411
15- # run api
1612run :
1713 docker compose run --service-ports application sh -c " sleep 1 && uv run alembic upgrade head && uv run python -m app"
1814
19- # create alembic migration with arguments
2015migration * args : && down
2116 docker compose run application sh -c " sleep 1 && uv run alembic upgrade head && uv run alembic revision --autogenerate {{ args }} "
2217
23- # build app docker container
2418build :
2519 docker compose build application
2620
27- # install local dependencies
2821install :
2922 uv lock --upgrade
3023 uv sync --all-extras --no-install-project --frozen
3124
32- # run linters
3325lint :
3426 uv run ruff format .
3527 uv run ruff check . --fix
You can’t perform that action at this time.
0 commit comments