Skip to content

Commit 48f6a24

Browse files
committed
migrate from task to just
1 parent 3042785 commit 48f6a24

File tree

3 files changed

+35
-46
lines changed

3 files changed

+35
-46
lines changed

Justfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
default: install lint build tests
2+
3+
# down all app containers
4+
down:
5+
docker compose down --remove-orphans
6+
7+
# run shell in container
8+
sh:
9+
docker compose run --service-ports application bash
10+
11+
# run pytest with arguments
12+
tests *args: down && down
13+
docker compose run application sh -c "sleep 1 && uv run alembic downgrade base && uv run alembic upgrade head && uv run pytest {{ args }}"
14+
15+
# create alembic migration with arguments
16+
migration *args: && down
17+
docker compose run application sh -c "sleep 1 && uv run alembic upgrade head && uv run alembic revision --autogenerate {{ args }}"
18+
19+
# build app docker container
20+
build:
21+
docker compose build application
22+
23+
# install local dependencies
24+
install:
25+
uv lock --upgrade
26+
uv sync --all-extras --no-install-project --frozen
27+
28+
# run linters
29+
lint:
30+
uv run ruff format .
31+
uv run ruff check . --fix
32+
uv run mypy .

Taskfile.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)