-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 1.13 KB
/
Makefile
File metadata and controls
40 lines (30 loc) · 1.13 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
.PHONY: docs
all: install
pip install build
python -m build
install:
pip install policyengine
pip install -e ".[dev]" --config-settings editable_mode=compat
pip install --upgrade jsonschema[format-nongpl]
pip install huggingface_hub
format:
ruff format .
ruff check .
test:
policyengine-core test policyengine_uk/tests/policy -c policyengine_uk
pytest policyengine_uk/tests/ --cov=policyengine_uk --cov-report=xml --maxfail=0 -v
test-all:
policyengine-core test policyengine_uk/tests/policy -c policyengine_uk
pytest policyengine_uk/tests/ --cov=policyengine_uk --cov-report=xml --maxfail=0 -v
test-microsimulation:
pytest policyengine_uk/tests/microsimulation/ -m microsimulation -v
update-tests:
python policyengine_uk/tests/microsimulation/update_reform_impacts.py
documentation:
cd docs/book && jupyter book clean --all -y
cd docs/book && jupyter book build --html
python docs/book/add_plotly_to_book.py docs/book/_build
docs: documentation
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))")