-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 799 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (27 loc) · 799 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
.PHONY: install test coverage build clean lint python-lint shell-lint type-check format adr
install:
pip install -e ".[dev]"
test:
python -m pytest tests/ -v
coverage:
python -m pytest tests/ --cov=dreamcoder_theme --cov-report=term-missing
build:
python -m build
clean:
rm -rf dist/ build/ *.egg-info/ src/*.egg-info/
lint: python-lint shell-lint type-check
python-lint:
ruff check src/ tests/
ruff format --check src/ tests/
shell-lint:
find scripts/ -name '*.sh' -exec shellcheck --shell=bash {} +
type-check:
mypy src/
format:
ruff format src/ tests/
adr:
@echo "=== Architecture Decision Records ==="
@ls docs/adr/*.md | while read f; do \
echo " $$(basename $$f) — $$(head -3 "$$f" | tail -1)"; \
done
@echo "Total: $$(ls docs/adr/*.md 2>/dev/null | wc -l) ADRs"