24 lines
482 B
Makefile
24 lines
482 B
Makefile
# run pre-commit linters
|
|
lint:
|
|
uv run pre-commit run --all-files
|
|
|
|
# run pytest
|
|
test *ARGS:
|
|
uv run pytest {{ARGS}}
|
|
|
|
# reset database and ephemeral files
|
|
reset:
|
|
rm -rf _logs/*
|
|
rm -rf _staticfiles
|
|
rm -rf db.sqlite3
|
|
uv run python manage.py migrate
|
|
uv run python manage.py createsuperuser
|
|
|
|
# run development server
|
|
runserver *ARGS:
|
|
uv run python manage.py runserver {{ARGS}}
|
|
|
|
# run arbitrary django commands
|
|
dj *ARGS:
|
|
uv run python manage.py {{ARGS}}
|