-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 923 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 923 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
.PHONY: docs
all: build-package
docs:
cd docs && jupyter book start
install:
uv pip install -e .[dev]
format:
ruff format .
clean:
find . -not -path "./.venv/*" -type d -name "__pycache__" -exec rm -rf {} +
find . -not -path "./.venv/*" -type d -name "_build" -exec rm -rf {} +
find . -not -path "./.venv/*" -type d -name ".pytest_cache" -exec rm -rf {} +
find . -not -path "./.venv/*" -type d -name ".ruff_cache" -exec rm -rf {} +
find . -not -path "./.venv/*" -type d -name "*.egg-info" -exec rm -rf {} +
find . -not -path "./.venv/*" -type f -name "*.pyc" -delete
find . -not -path "./.venv/*" -type f -name "*.h5" -delete
changelog:
python .github/bump_version.py
towncrier build --yes --version $$(python -c "import re; print(re.search(r'version = \"(.+?)\"', open('pyproject.toml').read()).group(1))")
build-package:
python -m build
test:
pytest tests --cov=policyengine --cov-report=term-missing