-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (43 loc) · 1.5 KB
/
Makefile
File metadata and controls
55 lines (43 loc) · 1.5 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
54
55
.PHONY: help install install-dev test demo lint clean validate serve
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install the package
pip install -e .
install-dev: ## Install the package with development dependencies
pip install -e ".[dev]"
test: ## Run tests
pytest -v
test-cov: ## Run tests with coverage
pytest --cov=archaeology --cov-report=html --cov-report=term
demo: ## Create and run demo project
devarch demo --force --build-db
lint: ## Run basic Python linting
python3 -m py_compile archaeology/*.py
python3 -m py_compile archaeology/**/*.py
@echo "Syntax check passed"
validate: ## Validate project configuration
devarch demo --force
devarch validate demo-project
serve: ## Start Datasette server for demo project
devarch serve demo-project --port 8001
clean: ## Remove build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf htmlcov/
rm -rf .coverage
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*.db-shm" -delete
find . -type f -name "*.db-wal" -delete
@echo "Cleaned build artifacts"
clean-demo: ## Remove demo project
rm -rf projects/demo-project
@echo "Removed demo project"
reset: clean clean-demo ## Full reset (clean + remove demo)
@echo "Full reset complete"