-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 1.04 KB
/
Makefile
File metadata and controls
39 lines (32 loc) · 1.04 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
# Makefile for c4-literate-python
.PHONY: help docs test clean install
help:
@echo "Available targets:"
@echo " docs - Generate documentation from schema"
@echo " test - Run test suite"
@echo " clean - Remove generated files"
@echo " install - Install package in development mode"
docs:
@echo "Generating schema documentation..."
python3 generate_schema_docs.py
@echo "✓ Generated SCHEMA.md"
test:
@echo "Running tests..."
pytest tests/ -v
clean:
@echo "Cleaning generated files..."
rm -rf build/ dist/ *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
@echo "✓ Cleaned"
install:
@echo "Installing in development mode..."
pip install -e .
@echo "✓ Installed"
# Check that generated docs are up to date
check-docs:
@echo "Checking if schema docs are up to date..."
@python3 generate_schema_docs.py
@git diff --exit-code SCHEMA.md || \
(echo "❌ SCHEMA.md is out of sync with YAML! Run 'make docs'" && exit 1)
@echo "✓ Schema docs are up to date"