From e24f8cff7c72faafd85dbf82b2adf8caddbe7fe9 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Dec 2018 09:41:20 +0100 Subject: [PATCH] scripts: Add flake8 checker Add code and style checker flake8. Signed-off-by: Daniel Wagner --- .travis.yml | 2 +- scripts/checkcode.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9914625..46791ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: # install kas to have all kas dependencies: - pip install . # checkcode dependencies: - - pip install pycodestyle doc8 Pygments + - pip install flake8 pycodestyle doc8 Pygments # test dependencies: - pip install pytest diff --git a/scripts/checkcode.sh b/scripts/checkcode.sh index d7638a0..06f16b3 100755 --- a/scripts/checkcode.sh +++ b/scripts/checkcode.sh @@ -5,6 +5,9 @@ ERROR=0 echo "Checking with pycodestyle" pycodestyle --ignore=W503,W606 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1) +echo "Checking with flake8" +flake8 $1 || ERROR=$(expr $ERROR + 2) + echo "Checking with doc8" doc8 $1/docs --ignore-path $1/docs/_build || ERROR=$(expr $ERROR + 4)