Skip to content

Commit c9738ae

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Makefile now check style in JSON files.
1 parent 38c83ad commit c9738ae

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,23 @@ test/static: dependencies
7979
${RUNTIME_TOOL} -m flake8 --verbose src/
8080
${RUNTIME_TOOL} -m pyright --verbose src/
8181

82-
test/styling: dependencies
82+
83+
test/styling/json: dependencies
84+
prettier --check ./src/**/*.json
85+
86+
test/styling/sources: dependencies
8387
${RUNTIME_TOOL} -m pycodestyle --statistics src/
8488

85-
format:
89+
test/styling: dependencies test/styling/sources test/styling/json
90+
91+
format/json:
92+
prettier --write ./src/**/*.json
93+
94+
format/sources:
8695
${RUNTIME_TOOL} -m autopep8 --in-place --recursive --aggressive --aggressive --verbose src/
8796

97+
format: format/sources format/json
98+
8899
build: env
89100
rsync -av --prune-empty-dirs \
90101
--exclude '*_test.py' \

0 commit comments

Comments
 (0)