PUBLIC_DIR ?= ../stundentracker-public

.PHONY: policy lint test ci public-export public-audit version-suggest version-auto version-tag-live

policy:
	python3 tools/policy_checks.py

lint:
	python3 -m djlint app/templates --check
	npm run lint:css

test:
	python3 -m pytest -q

ci: policy lint test

public-export:
	python3 tools/public_repo.py export $(PUBLIC_DIR) --force --git-init

public-audit:
	python3 tools/public_repo.py audit $(PUBLIC_DIR)

version-suggest:
	python3 tools/versioning.py suggest

version-auto:
	python3 tools/versioning.py apply-auto

version-tag-live:
	python3 tools/versioning.py tag-live
