qa : copied flake8 configuration, updated travis.yml

This commit is contained in:
alalazo 2016-05-10 18:38:30 +02:00
parent 979b53cab6
commit 190c437980
3 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@ script:
- coverage run bin/spack test
# Checks if the file that have been changed are flake8 conformant
- CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py$/'`
- if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8.ini ${CHANGED_PYTHON_FILES} ; fi
- if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8-framework.ini ${CHANGED_PYTHON_FILES} ; fi
after_success:

3
flake8-packages.ini Normal file
View File

@ -0,0 +1,3 @@
[flake8]
ignore = W391,F403,E221,F821
max-line-length = 79