Move flakes command into Makefile.
This commit is contained in:
parent
eb0052c53f
commit
62ddcba701
@ -15,8 +15,7 @@ install:
|
|||||||
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
|
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- tox -e $TOX_ENV
|
||||||
- IGNORE=E226,E241,E265,E402,E501,E704
|
- make flakes
|
||||||
- flake8 . --count --ignore=${IGNORE} --max-line-length=127 --show-source --statistics
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
|
5
Makefile
5
Makefile
@ -1,5 +1,7 @@
|
|||||||
# INSTALLATION: pip install sphinx && npm install --global node-sass
|
# INSTALLATION: pip install sphinx && npm install --global node-sass
|
||||||
|
|
||||||
|
FLAKE_IGNORE=E226,E241,E265,E402,E501,E704
|
||||||
|
|
||||||
ISSO_JS_SRC := $(shell find isso/js/app -type f) \
|
ISSO_JS_SRC := $(shell find isso/js/app -type f) \
|
||||||
$(shell ls isso/js/*.js | grep -vE "(min|dev)") \
|
$(shell ls isso/js/*.js | grep -vE "(min|dev)") \
|
||||||
isso/js/lib/requirejs-jade/jade.js
|
isso/js/lib/requirejs-jade/jade.js
|
||||||
@ -34,6 +36,9 @@ all: man js site
|
|||||||
init:
|
init:
|
||||||
(cd isso/js; bower --allow-root install almond requirejs requirejs-text jade)
|
(cd isso/js; bower --allow-root install almond requirejs requirejs-text jade)
|
||||||
|
|
||||||
|
flakes:
|
||||||
|
flake8 . --count --ignore=${FLAKE_IGNORE} --max-line-length=127 --show-source --statistics
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@echo "Python 2.x"
|
@echo "Python 2.x"
|
||||||
@python2 -m pyflakes $(filter-out isso/compat.py,$(ISSO_PY_SRC))
|
@python2 -m pyflakes $(filter-out isso/compat.py,$(ISSO_PY_SRC))
|
||||||
|
Loading…
Reference in New Issue
Block a user