init repository

This commit is contained in:
rmanach
2024-12-17 09:33:44 +01:00
parent 202924df8a
commit 3f4557e547
9 changed files with 163 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
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