@@ -5,58 +5,58 @@ all: test
55
66# # Install project dependencies.
77install :
8- @echo [⚙] Installing dependencies...
8+ @$( call doc, $@ :)
99 @pip install --upgrade pip twine wheel
1010 @pip install --editable .[dev] --upgrade --use-deprecated=legacy-resolver
1111
1212# # Install openfisca-core for deployment and publishing.
1313build : setup.py
1414 @# # This allows us to be sure tests are run against the packaged version
1515 @# # of openfisca-core, the same we put in the hands of users and reusers.
16- @echo [⚙] Building and installing locally built openfisca-core...
16+ @$( call doc, $@ :)
1717 @python $? bdist_wheel
1818 @find dist -name " *.whl" -exec pip install --force-reinstall {}[dev] \;
1919
2020# # Uninstall project dependencies.
2121uninstall :
22- @echo [⚙] Uninstalling project dependencies...
22+ @$( call doc, $@ :)
2323 @pip freeze | grep -v " ^-e" | sed " s/@.*//" | xargs pip uninstall -y
2424
2525# # Delete builds and compiled python files.
2626clean : \
2727 $(shell ls -d * | grep "build\|dist") \
2828 $(shell find . -name "* .pyc")
29- @echo [⚙] Deleting builds and compiled python files...
29+ @$( call doc, $@ :)
3030 @rm -rf $?
3131
3232# # Compile python files to check for syntax errors.
3333check-syntax-errors : .
34- @echo [⚙] Compiling python files to check for syntax errors...
34+ @$( call doc, $@ :)
3535 @python -m compileall -q $?
3636
3737# # Run linters to check for syntax and style errors.
3838check-style : $(shell git ls-files "* .py")
39- @echo [⚙] Running linters to check for syntax and style errors...
39+ @$( call doc, $@ :)
4040 @flake8 $?
4141
4242# # Run code formatters to correct style errors.
4343format-style : $(shell git ls-files "* .py")
44- @echo [⚙] Running code formatters to correct style errors...
44+ @$( call doc, $@ :)
4545 @autopep8 $?
4646
4747# # Run static type checkers for type errors.
4848check-types : openfisca_core openfisca_web_api
49- @echo [⚙] Running static type checkers for type errors...
49+ @$( call doc, $@ :)
5050 @mypy $?
5151
5252# # Run openfisca-core tests.
5353test : clean check-syntax-errors check-style check-types
54- @echo [⚙] Running openfisca-core tests...
54+ @$( call doc, $@ :)
5555 @env PYTEST_ADDOPTS=" ${PYTEST_ADDOPTS} --cov=openfisca_core" pytest
5656
5757# # Serve the openfisca Web API.
5858api :
59- @echo [⚙] Serving the openfisca Web API...
59+ @$( call doc, $@ :)
6060 @openfisca serve \
6161 --country-package openfisca_country_template \
6262 --extensions openfisca_extension_template
0 commit comments