Move flake8 configuration to setup.cfg.

This commit is contained in:
Jelmer Vernooij 2019-04-14 15:18:27 +00:00
parent 1b13458e6a
commit e08c378900
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,5 @@
# 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) \
$(shell ls isso/js/*.js | grep -vE "(min|dev)") \
isso/js/lib/requirejs-jade/jade.js
@ -39,7 +37,7 @@ init:
(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
flake8 . --count --max-line-length=127 --show-source --statistics
isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS)
$(RJS) -o isso/js/build.$*.js out=$@

View File

@ -3,3 +3,7 @@ with-doctest=1
[bdist_wheel]
universal=1
[flake8]
ignore = E501, E402
exclude = docs/conf.py