forked from openfisca/openfisca-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 932 Bytes
/
Makefile
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
all: test
uninstall:
pip freeze | grep -v "^-e" | xargs pip uninstall -y
install:
pip install --upgrade pip twine wheel
pip install --editable .[dev] --upgrade
clean:
rm -rf build dist
find . -name '*.pyc' -exec rm \{\} \;
check-syntax-errors:
python -m compileall -q .
check-types:
mypy openfisca_core && mypy openfisca_web_api
check-style:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
flake8 `git ls-files | grep "\.py$$"`
format-style:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
autopep8 `git ls-files | grep "\.py$$"`
test: clean check-syntax-errors check-style check-types
env PYTEST_ADDOPTS="$$PYTEST_ADDOPTS --cov=openfisca_core" pytest
api:
openfisca serve --country-package openfisca_country_template --extensions openfisca_extension_template