-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 796 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 796 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
all: install format test build changelog
documentation:
jb clean docs
jb build docs
python docs/add_plotly_to_book.py docs/_build
format:
ruff format .
ruff check .
install:
uv pip install --system -e ".[dev]" --config-settings editable_mode=compat
test-country-template:
policyengine-core test policyengine_core/country_template/tests -c policyengine_core.country_template
mypy:
mypy --config-file mypy.ini policyengine_core tests
test: test-country-template
coverage run -a --branch -m pytest tests --disable-pytest-warnings --reruns 2 --reruns-delay 5
coverage xml -i
build:
python -m build
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))")