Ignore E3xx

This commit is contained in:
Michel Oosterhof 2018-06-22 09:27:34 +00:00
parent d50617b73b
commit 528907e0fe
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ before_script:
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics # ignore E3xx errors, Twisted has different empty line convention
- flake8 . --count --ignore=E3 --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - twistedchecker --pep8=y -d W9001,W9002 cowrie twisted.plugins # - twistedchecker --pep8=y -d W9001,W9002 cowrie twisted.plugins
# Twistedchecker has some version issues, disable for now # Twistedchecker has some version issues, disable for now
script: PYTHONPATH=${TRAVIS_BUILD_DIR} trial cowrie script: PYTHONPATH=${TRAVIS_BUILD_DIR} trial cowrie