Add pre-commit hook to update version

This commit is contained in:
2023-01-05 21:10:17 +01:00
parent 8efce77062
commit 2807c5e00e
5 changed files with 39 additions and 11 deletions

View File

@ -2,7 +2,7 @@
all: css migrate
initialize: npm css migrate loadplatforms
initialize: npm css migrate sethookdir loadplatforms
HTMLFILES := $(shell find src/web/tracker/templates -type f)
@ -21,7 +21,7 @@ makemigrations:
migrate: makemigrations
poetry run python src/web/manage.py migrate
dev: migrate
dev: migrate sethookdir
TZ=Europe/Prague poetry run python src/web/manage.py runserver
dumptracker:
@ -43,4 +43,7 @@ poetry.lock: pyproject.toml
poetry install
test: poetry.lock
poetry run pytest
poetry run pytest
sethookdir:
git config core.hooksPath .githooks