add target to lint for Python 2 and 3
This commit is contained in:
parent
d469324392
commit
f06be982e7
8
Makefile
8
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_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') \
|
DOCS_RST_SRC := $(shell find docs/ -type f -name '*.rst') \
|
||||||
$(wildcard docs/_isso/*) \
|
$(wildcard docs/_isso/*) \
|
||||||
@ -30,6 +30,12 @@ all: man js site
|
|||||||
init:
|
init:
|
||||||
(cd isso/js; bower install almond requirejs requirejs-text jade)
|
(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)
|
isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS)
|
||||||
r.js -o isso/js/build.$*.js out=$@
|
r.js -o isso/js/build.$*.js out=$@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user