Add PEP8 checker to TravisCI

This commit is contained in:
Chocobo1 2018-09-16 14:11:40 +08:00
parent 2ff70403ff
commit 14bdd68899
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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