Skip to content

Commit 3cafb21

Browse files
committed
Add 'and' operator for all commands in make lint
1 parent 508348f commit 3cafb21

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

python/Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,14 @@ fmt:
109109
lint:
110110
black \
111111
--check ./ ../testing/scripts \
112-
--exclude "(proto|seldon_core/proto/|.eggs|.tox)"
112+
--exclude "(proto|seldon_core/proto/|.eggs|.tox)" && \
113113
isort \
114114
--check-only ./ ../testing/scripts \
115-
--skip proto --skip seldon_core/proto --skip .eggs --skip .tox
116-
flake8
115+
--skip proto --skip seldon_core/proto --skip .eggs --skip .tox && \
116+
flake8 && \
117117
nbqa black \
118-
../ --check --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
119-
nbqa isort \
120-
../ --check-only --profile black --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
121-
# Check if licenses have changed
118+
../ --check --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)" && \
119+
nbqa isort ../ --check-only --profile black --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)" && \
122120
git -C .. \
123121
--no-pager diff \
124122
--exit-code \

0 commit comments

Comments
 (0)