Create a .env
file from .env.example.dev
and fill it out.
# build containers
docker compose build
# start containers
docker compose up -d
Install python 3.12.7.
python -m venv venv
source ./venv/bin/activate
pip install -U -r requirements.txt dev-requirements.txt
# install git precomit hooks
pre-commit install
# run lint
ruff check
# autofix errors
ruff check --fix
# run code formatter
ruff format
Since we are running Django in Docker, tests need to be run in Docker as well; you can run them like this:
docker compose exec appserver python manage.py test