From f06be982e75f1cfc332db71da14c15df39be5f86 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sun, 9 Nov 2014 21:18:05 +0100 Subject: [PATCH] add target to lint for Python 2 and 3 --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8510d75..22fa937 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ ISSO_JS_DST := isso/js/embed.min.js isso/js/embed.dev.js \ ISSO_CSS := isso/css/isso.css -ISSO_PY_SRC := $(shell git ls-files | grep .py) +ISSO_PY_SRC := $(shell git ls-files | grep -E "^isso/.+.py$$") DOCS_RST_SRC := $(shell find docs/ -type f -name '*.rst') \ $(wildcard docs/_isso/*) \ @@ -30,6 +30,12 @@ all: man js site init: (cd isso/js; bower install almond requirejs requirejs-text jade) +check: + @echo "Python 2.x" + -@python2 -m pyflakes $(ISSO_PY_SRC) + @echo "Python 3.x" + -@python3 -m pyflakes $(ISSO_PY_SRC) + isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS) r.js -o isso/js/build.$*.js out=$@