39 lines
857 B
Makefile
39 lines
857 B
Makefile
.PHONY: help lint format lint-fix check install dev-install clean test
|
|
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " install Install dependencies"
|
|
@echo " dev-install Install development dependencies"
|
|
@echo " lint Run linter (check only)"
|
|
@echo " format Format code"
|
|
@echo " lint-fix Run linter with auto-fix"
|
|
@echo " check Run all checks (lint + format check)"
|
|
@echo " clean Clean cache files"
|
|
@echo " test Run tests"
|
|
|
|
install:
|
|
uv sync --no-dev
|
|
|
|
dev-install:
|
|
uv sync
|
|
|
|
lint:
|
|
uv run ruff check .
|
|
|
|
format:
|
|
uv run ruff format .
|
|
|
|
lint-fix:
|
|
uv run ruff check --fix --unsafe-fixes .
|
|
|
|
check: lint
|
|
uv run ruff format --check .
|
|
|
|
clean:
|
|
rm -rf .ruff_cache
|
|
rm -rf __pycache__
|
|
find . -type d -name "__pycache__" -exec rm -rf {} +
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
test:
|
|
@echo "No tests configured yet"
|