- Use
@pytest.mark.parametrizeif applicable, and always include spaces after commas in the argument list, e.g. "secondary_school, university, expected". - Do not use
if TYPE_CHECKING:blocks. Prefer straightforward imports/annotations without this pattern. - Do not use inline imports inside functions or methods. Keep imports at module level.
- After changes to code or images, always run
uv run jg tidy --codebefore finishing the work. - Run
uv run jg testonly if you made substantial changes to Python or JavaScript code. - After major SCSS or JavaScript edits, consider running
uv run jg web build-staticto catch asset build issues. - After changes to templates,
context.py, or related web rendering logic, consider runninguv run jg web buildto verify site generation. - Never run
uv run jg sync ...yourself without asking. If you must, runuv run jg sync --no-deps ...so you don't accidentally run the whole pipeline of depending sync scripts.