Skip to content

Commit ed8f82a

Browse files
author
Mauko Quiroga
committed
Print doc when running task
1 parent 75260cd commit ed8f82a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,58 @@ all: test
55

66
## Install project dependencies.
77
install:
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.
1313
build: 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.
2121
uninstall:
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.
2626
clean: \
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.
3333
check-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.
3838
check-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.
4343
format-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.
4848
check-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.
5353
test: 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.
5858
api:
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

Comments
 (0)