From 8119dff5f09f3edc6bd39fb55d2e943badb0291c Mon Sep 17 00:00:00 2001 From: Claudius Heine Date: Tue, 7 Nov 2017 16:18:24 +0100 Subject: [PATCH] scripts: pep8 is renamed to pycodestyle Fix it to use the new name. Signed-off-by: Claudius Heine --- .travis.yml | 2 +- docs/conf.py | 2 +- scripts/checkcode.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 66231e4..ed9c25e 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 pylint pep8 doc8 Pygments + - pip install pylint pycodestyle doc8 Pygments # test dependencies: - pip install pytest diff --git a/docs/conf.py b/docs/conf.py index 77f7a5f..4690447 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ import sys # Add the project directory to the path, in order to include it: sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) -import kas # noqa (disables pep8 check for this line) +import kas # noqa (disables pycodestyle check for this line) # -- General configuration ------------------------------------------------ diff --git a/scripts/checkcode.sh b/scripts/checkcode.sh index 6fbfcaf..80f0a0a 100755 --- a/scripts/checkcode.sh +++ b/scripts/checkcode.sh @@ -2,8 +2,8 @@ ERROR=0 -echo "Checking with pep8" -pep8 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1) +echo "Checking with pycodestyle" +pycodestyle $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1) echo "Checking with pylint" pylint $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 2)