-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathJustfile
More file actions
29 lines (21 loc) · 848 Bytes
/
Justfile
File metadata and controls
29 lines (21 loc) · 848 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
default: install lint build test
down:
docker compose down --remove-orphans
sh:
docker compose run --service-ports application bash
test *args: down && down
docker compose run application sh -c "sleep 1 && uv run alembic downgrade base && uv run alembic upgrade head && uv run pytest {{ args }}"
run:
docker compose run --service-ports application sh -c "sleep 1 && uv run alembic upgrade head && uv run python -m app"
migration *args: && down
docker compose run application sh -c "sleep 1 && uv run alembic upgrade head && uv run alembic revision --autogenerate {{ args }}"
build:
docker compose build application
install:
uv lock --upgrade
uv sync --all-extras --all-groups --no-install-project --frozen
lint:
uv run eof-fixer .
uv run ruff format .
uv run ruff check . --fix
uv run mypy .