From 14bdd68899412f63708c356f92f36b814aad5582 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 16 Sep 2018 14:11:40 +0800 Subject: [PATCH] Add PEP8 checker to TravisCI --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e0dc03e..3538c40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,9 +15,11 @@ matrix: env: NOVA_DIR=nova3 install: - - pip install pyflakes + - pip install pycodestyle pyflakes script: - - cd "$TRAVIS_BUILD_DIR" - - python -m compileall "$NOVA_DIR/engines/"*.py - - pyflakes "$NOVA_DIR/engines/"*.py + - cd "$TRAVIS_BUILD_DIR/$NOVA_DIR/engines" + - python -m compileall *.py + - pyflakes *.py + # skipping E265, fixing it will break plugin usage on older qbt instances (< v4.1.2) + - pycodestyle --ignore=E265,W503 --max-line-length=100 --statistics *.py