Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 727 Bytes

CONTRIBUTING.md

File metadata and controls

47 lines (33 loc) · 727 Bytes

CONTRIBUTING

Dev environment

docker

Create a .env file from .env.example.dev and fill it out.

# build containers
docker compose build
# start containers
docker compose up -d

python for lsp and lint

Install python 3.12.7.

python -m venv venv
source ./venv/bin/activate
pip install -U -r requirements.txt dev-requirements.txt

lint & format

# install git precomit hooks
pre-commit install

# run lint
ruff check
# autofix errors
ruff check --fix

# run code formatter
ruff format

tests

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