build: update task.mk

This commit is contained in:
Daylin Morgan 2023-03-02 23:01:44 -06:00
parent a2de954260
commit ce1f414cb1
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 4 additions and 2 deletions

View file

@ -3,4 +3,4 @@ PHONIFY=1
HELP_SEP={a.b_blue}>>>{a.end}
-include .task.mk
$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v23.1.1/task.mk -o .task.mk))
$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v23.1.2/task.mk -o .task.mk))

View file

@ -1,7 +1,9 @@
VERSION ?= $(shell git describe --tags --always --dirty=-dev | sed 's/^v//g')
PREFIX ?= ~/bin
lint: ## run pre-commit hooks
pdm run pre-commit run --all || pdm run pre-commit run --all
types: ## run mypy
mypy src/viv
@ -11,7 +13,7 @@ bump-version: ## update version and tag commit
@git add src/viv/viv.py && git commit -m "chore: bump version"
@git tag v$(VERSION)
env: ## generate environment
venv: ## generate environment
pdm install
install: ## symlink to $PREFIX