-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (39 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
51 lines (39 loc) · 1.32 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
.PHONY: help install dev test test-fast lint format typecheck check clean demo ui
help:
@echo "install Install the package with all extras"
@echo "dev Install with dev tooling too"
@echo "test Run the full test suite"
@echo "test-fast Skip tests that need ffmpeg"
@echo "lint Run ruff"
@echo "format Auto-format with ruff"
@echo "typecheck Run mypy"
@echo "check lint + typecheck + test"
@echo "demo Render a sample video offline (no API keys needed)"
@echo "ui Launch the Streamlit interface"
@echo "clean Remove build and cache artifacts"
install:
pip install -e ".[all]"
dev:
pip install -e ".[all,dev]"
test:
pytest
test-fast:
pytest -m "not ffmpeg"
lint:
ruff check videogen tests
format:
ruff format videogen tests
ruff check --fix videogen tests
typecheck:
mypy videogen
check: lint typecheck test
demo:
python -m videogen generate --dry-run -o output/demo \
"The deep ocean remains the least explored region on Earth. Sunlight fades \
entirely below one thousand metres, leaving a permanent night. Creatures there \
produce their own light through bioluminescence."
ui:
python -m videogen ui
clean:
rm -rf build dist *.egg-info .pytest_cache .mypy_cache .ruff_cache htmlcov .coverage
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true