2025-03-12 17:29:38 +01:00
|
|
|
deps:
|
|
|
|
pip-compile-multi --uv
|
|
|
|
|
|
|
|
sync:
|
2025-03-14 11:13:19 +01:00
|
|
|
pip-sync requirements/dev.txt
|
2025-03-12 17:29:38 +01:00
|
|
|
|
2025-03-17 17:12:56 +01:00
|
|
|
freshdeps: deps sync
|
|
|
|
|
2025-03-18 11:45:42 +01:00
|
|
|
lint: lint-ruff lint-django lint-woodpecker lint-markdown
|
2025-03-12 18:16:29 +01:00
|
|
|
|
|
|
|
lint-ruff:
|
2025-03-12 17:29:38 +01:00
|
|
|
ruff check .
|
2025-03-12 18:16:29 +01:00
|
|
|
|
|
|
|
lint-django:
|
|
|
|
python -m django check
|
2025-03-17 17:13:49 +01:00
|
|
|
python -m django validate_templates
|
2025-03-12 21:17:46 +01:00
|
|
|
|
2025-03-15 00:00:32 +01:00
|
|
|
lint-woodpecker:
|
2025-03-18 11:46:15 +01:00
|
|
|
@# allowed to fail because woodpecker-cli requires installation of homebrew
|
|
|
|
@# beforehand and not everyone will want to do that
|
2025-03-15 00:05:18 +01:00
|
|
|
-woodpecker-cli lint .woodpecker/workflow.yaml
|
2025-03-15 00:00:32 +01:00
|
|
|
|
2025-03-18 11:45:42 +01:00
|
|
|
lint-markdown:
|
|
|
|
pymarkdown scan .
|
|
|
|
|
2025-03-12 21:17:46 +01:00
|
|
|
serve:
|
|
|
|
python -m django runserver
|
2025-03-13 17:14:54 +01:00
|
|
|
|
|
|
|
test *ARGS:
|
2025-03-14 14:15:39 +01:00
|
|
|
ENV_PATH=.env.test python -m pytest {{ARGS}}
|
2025-03-17 17:12:56 +01:00
|
|
|
|
2025-03-18 00:12:51 +01:00
|
|
|
cov *ARGS:
|
|
|
|
just test --cov --cov-report xml --cov-report term --junitxml=reports/junit/junit.xml {{ARGS}}
|
2025-03-18 00:18:31 +01:00
|
|
|
|
|
|
|
badges:
|
|
|
|
genbadge coverage --output-file docs/coverage-badge.svg
|
|
|
|
genbadge tests --output-file docs/tests-badge.svg
|
|
|
|
|
2025-03-17 17:12:56 +01:00
|
|
|
alias fd := freshdeps
|