feat: add linting and testing commands to Makefile; enhance CLI with new features and tests

This commit is contained in:
Felix Rudat
2026-02-04 10:38:33 +01:00
parent f1eb64c102
commit e158946211
7 changed files with 272 additions and 27 deletions
+13 -2
View File
@@ -1,4 +1,4 @@
.PHONY: setup run build smoke clean
.PHONY: setup run build smoke clean lint test
setup:
uv venv
@@ -7,6 +7,17 @@ setup:
run:
uv run python scripts/planka_cli.py status
lint:
uv run ruff check scripts/ tests/
uv run ruff format --check scripts/ tests/
lint-fix:
uv run ruff check --fix scripts/ tests/
uv run ruff format scripts/ tests/
test:
uv run pytest tests/ -v
build:
uv run pyinstaller planka-cli.spec --noconfirm
@@ -21,4 +32,4 @@ smoke: build
./dist/planka-cli --help
clean:
rm -rf dist build __pycache__ scripts/__pycache__
rm -rf dist build __pycache__ scripts/__pycache__ tests/__pycache__ .pytest_cache