ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) PYTHON := $(ROOT_DIR)venv/bin/python install: python3 -m venv venv $(PYTHON) -m pip install -r requirements.txt $(PYTHON) -m pip install -r requirements-dev.txt lint: $(PYTHON) -m ruff check src --fix format: $(PYTHON) -m ruff format src check-type: $(PYTHON) -m mypy main.py src check: format lint check-type build: check $(PYTHON) build-deps.py $(PYTHON) -m hatch -v build -t wheel publish: build $(PYTHON) -m twine upload --repository gitea dist/*.whl