diff --git a/.travis.yml b/.travis.yml index dc32bb3ac8..c7c009af12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ before_script: script: - python setup.py install - - if [ $TRAVIS_PYTHON_VERSION != 3.5 ]; then make stylecheck; fi + - if [ $TRAVIS_PYTHON_VERSION != 3.5 ]; then make style_check; fi - tox notifications: diff --git a/Makefile b/Makefile index f0f8ee3383..c667a619e9 100644 --- a/Makefile +++ b/Makefile @@ -46,9 +46,9 @@ style: isort --apply --recursive $(STYLE_TARGETS) --skip-glob "*/$(EXCLUDE_TARGETS)/*" autoflake -i --remove-all-unused-imports -r $(STYLE_TARGETS) --exclude "$(EXCLUDE_TARGETS)" -stylecheck: +style_check: black --check $(STYLE_TARGETS) isort --diff --check-only --recursive $(STYLE_TARGETS) --skip-glob "*/$(EXCLUDE_TARGETS)/*" flake8 -.PHONY: all build install clean style stylecheck git-clean clean-build clean-pyc clean-test +.PHONY: all build install clean style style_check git-clean clean-build clean-pyc clean-test