Skip to content

Instantly share code, notes, and snippets.

@samuelcolvin
Created August 29, 2019 11:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelcolvin/5726b55da83098a81c4f6eb3b567b934 to your computer and use it in GitHub Desktop.
Save samuelcolvin/5726b55da83098a81c4f6eb3b567b934 to your computer and use it in GitHub Desktop.
if expression in Makefile
.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