From 62ddcba701da43ddfad1fb16a55551718808c883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sat, 3 Nov 2018 14:50:05 +0000 Subject: [PATCH] Move flakes command into Makefile. --- .travis.yml | 3 +-- Makefile | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4cb97a4..883b3b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,7 @@ install: - sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm script: - tox -e $TOX_ENV - - IGNORE=E226,E241,E265,E402,E501,E704 - - flake8 . --count --ignore=${IGNORE} --max-line-length=127 --show-source --statistics + - make flakes notifications: irc: channels: diff --git a/Makefile b/Makefile index 41a0afa..5179361 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ # 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 @@ -34,6 +36,9 @@ all: man js site 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 + check: @echo "Python 2.x" @python2 -m pyflakes $(filter-out isso/compat.py,$(ISSO_PY_SRC))