hackerdeck/justfile
2025-12-23 14:44:33 +01:00

38 lines
837 B
Makefile
Executable file

#!/usr/bin/env -S just --justfile
default:
@just --list
format:
uv run ruff check . --fix --select I,F401
uv run ruff format
check: format
uv lock --check
uv run ruff check .
uv run deptry .
uv run pyright .
migrate:
uv run hackerdeck-alembic upgrade head
create-migration MESSAGE:
uv run hackerdeck-alembic revision --autogenerate -m "{{MESSAGE}}"
install-hooks:
uv run prek install
dump-staging:
nix shell 'nixpkgs#postgresql_16' -c pg_dump -d "$STAGING_DB" -F custom > dump.psql
reset-staging:
nix shell 'nixpkgs#postgresql_16' -c pg_restore -d "$STAGING_DB" -O -c dump.psql
reset-prod:
nix shell 'nixpkgs#postgresql_16' -c pg_restore -d "$PROD_DB" -O -c dump.psql
dump-prod:
nix shell 'nixpkgs#postgresql_16' -c pg_dump -d "$PROD_DB" -F custom > dump.psql
run:
uv run python -m hackerdeck.main