Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Dec 16, 2024
1 parent e0da9a0 commit dbadacc
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 95 deletions.
8 changes: 0 additions & 8 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
default: install lint build test

# down all app containers
down:
docker compose down --remove-orphans

# run shell in container
sh:
docker compose run --service-ports application bash

# run pytest with arguments
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 api
run:
docker compose run --service-ports application sh -c "sleep 1 && uv run alembic upgrade head && uv run python -m app"

# create alembic migration with arguments
migration *args: && down
docker compose run application sh -c "sleep 1 && uv run alembic upgrade head && uv run alembic revision --autogenerate {{ args }}"

# build app docker container
build:
docker compose build application

# install local dependencies
install:
uv lock --upgrade
uv sync --all-extras --no-install-project --frozen

# run linters
lint:
uv run ruff format .
uv run ruff check . --fix
Expand Down
Loading

0 comments on commit dbadacc

Please sign in to comment.