Created
August 29, 2019 11:22
-
-
Save samuelcolvin/5726b55da83098a81c4f6eb3b567b934 to your computer and use it in GitHub Desktop.
if expression in Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: lint | |
lint: | |
python setup.py check -rms | |
flake8 watchgod/ tests/ | |
$(isort) --check-only | |
ifeq ($(shell python -c "import sys; print('{0.major}.{0.minor}'.format(sys.version_info))"),3.5) | |
@echo "black is not compatible with python3.5, not running" | |
else | |
$(black) --check | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment