-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.3 KB
/
Copy pathMakefile
File metadata and controls
53 lines (39 loc) · 1.3 KB
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
43
44
45
46
47
48
49
50
51
52
53
.PHONY: help install install-dev test lint format clean build publish
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / { printf " %-15s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
install: ## Install production dependencies
pip install -r requirements.txt
install-dev: ## Install development dependencies
pip install -r requirements.txt
pip install -e .
test: ## Run tests
pytest tests/ -v --cov=clipper --cov-report=html --cov-report=term-missing
test-fast: ## Run tests without coverage
pytest tests/ -v
lint: ## Run linting
flake8 clipper/ tests/
mypy clipper/
format: ## Format code with black
black clipper/ tests/
format-check: ## Check code formatting
black --check clipper/ tests/
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf htmlcov/
rm -rf .coverage
rm -rf .pytest_cache/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
build: ## Build package
python -m build
publish: ## Publish to PyPI (requires twine)
twine upload dist/*
dev-install: install-dev ## Install in development mode
@echo "Development environment ready!"
check: format-check lint test ## Run all checks
pre-commit: format lint test ## Run pre-commit checks