-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 995 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: test lint install-hooks build clean help
# Default target
.DEFAULT_GOAL := help
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
test: ## Run tests with coverage
pytest -v --cov=checkend --cov-report=term-missing
lint: ## Run linter (ruff)
ruff check .
ruff format --check .
format: ## Format code with ruff
ruff check --fix .
ruff format .
install-hooks: ## Install git hooks
./scripts/install-hooks.sh
install: ## Install package in development mode
pip install -e ".[dev]"
build: ## Build package
python -m build
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
all: lint test ## Run lint and tests