Skip to content

Commit 7024cba

Browse files
author
Mauko Quiroga
committed
Add doc to make format-style
1 parent 66c2ca8 commit 7024cba

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ check-types: $(shell ls -d * | grep "openfisca_")
6060
&& echo ${OK} \
6161
|| { echo "\n$$(cat /tmp/result)" && exit $$(</tmp/status) ; }
6262

63-
format-style:
64-
@# Do not analyse .gitignored files.
65-
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
66-
autopep8 `git ls-files | grep "\.py$$"`
63+
## Run code formatters to correct style errors.
64+
format-style: $(shell git ls-files | grep "\.py$$")
65+
@## Do not analyse .gitignored files.
66+
@## `make` needs `$$` to output `$`.
67+
@## See http://stackoverflow.com/questions/2382764.
68+
@printf "Running code formatters..."
69+
@autopep8 $?
70+
@echo ${OK}
6771

6872
## Run openfisca-core & country/extension template tests.
6973
test: clean check-syntax-errors check-style check-types

0 commit comments

Comments
 (0)