teilchensammler/justfile

40 lines
838 B
Makefile
Raw Normal View History

deps:
pip-compile-multi --uv
sync:
pip-sync requirements/dev.txt
freshdeps: deps sync
lint: lint-ruff lint-django lint-woodpecker lint-markdown
2025-03-12 18:16:29 +01:00
lint-ruff:
ruff check .
2025-03-12 18:16:29 +01:00
lint-django:
python -m django check
python -m django validate_templates
2025-03-12 21:17:46 +01:00
lint-woodpecker:
@# allowed to fail because woodpecker-cli requires installation of homebrew
@# beforehand and not everyone will want to do that
-woodpecker-cli lint .woodpecker/workflow.yaml
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:
ENV_PATH=.env.test python -m pytest {{ARGS}}
cov *ARGS:
just test --cov --cov-report xml --cov-report term --junitxml=reports/junit/junit.xml {{ARGS}}
badges:
genbadge coverage --output-file docs/coverage-badge.svg
genbadge tests --output-file docs/tests-badge.svg
alias fd := freshdeps