Skip to content

Commit

Permalink
include notebook nbqa as part of python lint (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSkolasinski committed Aug 30, 2021
1 parent d951c34 commit e30c82b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions python/Makefile
Expand Up @@ -104,19 +104,23 @@ fmt:
isort \
./ ../testing/scripts ../operator/helm ../operator/hack \
--skip proto --skip seldon_core/proto --skip .eggs --skip .tox
nbqa black ../ \
--nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
nbqa isort ../ \
--profile black --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
nbqa black \
../ --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
nbqa isort \
../ --profile black --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"

lint: licenses
lint:
black \
--check ./ ../testing/scripts \
--exclude "(proto|seldon_core/proto/|.eggs|.tox)"
isort \
--check-only ./ ../testing/scripts \
--skip proto --skip seldon_core/proto --skip .eggs --skip .tox
flake8
nbqa black \
../ --check --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
nbqa isort \
../ --check-only --profile black --nbqa-exclude "(proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
# Check if licenses have changed
git \
--no-pager diff \
Expand Down

0 comments on commit e30c82b

Please sign in to comment.