Important context for AI coding agents working on this project.
Note: Run commands via
just, which invokesuvto manage the virtual environment automatically.
just lint: Lint the project.just format: Format project files.just test: Run tests.just translations: Generate and compile translation strings.
just backend:Build the backend.just frontend:Build the frontend.just buildfixtures:Build the test fixtures.just run: Run the development server.
Create a .env file in the project root with:
ALLOWED_HOSTS=localhost
PORT=8000
SECRET_KEY=some-random-secret
DJANGO_SETTINGS_MODULE=apps.guide.settings.dev
just docker-build: Build the Docker image.just docker-run: Run the Docker container.just docker-init: Initialize the project inside the container.
Defined in ruff.toml, .eslintrc.json, .prettierrc.json, .stylelintrc.json:
- Python: 4 spaces indent,
ruff format(line-length 88, target py312) - JavaScript:
eslintwith@wagtail/eslint-config-wagtail - Formatting:
prettier(singleQuote,trailingComma: all) - SCSS/CSS:
stylelintwith@wagtail/stylelint-config-wagtail(strict color values) - Tests: modules named
test_*.py, classes namedTest*, methods namedtest_*
- Be concise and to the point. Explain rationales that aren’t obvious.
- Commit messages must be a single line, short, sentence case, imperative summary. Do not add a description body unless explicitly asked.
- Always add a disclaimer to the PR description mentioning how AI agents are involved with the contribution.
- Do not add commits unrelated to the PR — check commit history against upstream main before pushing.