diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-05-10 18:45:11 +0200 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-05-10 18:45:11 +0200 |
commit | 3f20014f335f50e6bac8f8ced7a36fae00537c61 (patch) | |
tree | 7298bcf63b5a58c161f1d1b5e1e52a5b8c527bc8 | |
parent | 190c437980ecb7e1710643b05278cfd4f4b77b1b (diff) | |
download | spack-3f20014f335f50e6bac8f8ced7a36fae00537c61.tar.gz spack-3f20014f335f50e6bac8f8ced7a36fae00537c61.tar.bz2 spack-3f20014f335f50e6bac8f8ced7a36fae00537c61.tar.xz spack-3f20014f335f50e6bac8f8ced7a36fae00537c61.zip |
qa : differentiate framework from packages
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | flake8-framework.ini | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 96138813e2..c41692c08e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,12 @@ script: - spack install -v libdwarf # Run unit tests with code coverage - 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$/'` + # Checks if the file that have been changed are flake8 conformant [framework] + - CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py$/' | perl -ne 'print if not /var/' ` - if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8-framework.ini ${CHANGED_PYTHON_FILES} ; fi + # Checks if the file that have been changed are flake8 conformant [packages] + - CHANGED_PACKAGES=`git diff develop... --name-only | perl -ne 'print if /\.py$/' | perl -ne 'print if /var/' ` + - if [[ ${CHANGED_PACKAGES} ]] ; then flake8 --format pylint --config flake8-packages.ini ${CHANGED_PACKAGES} ; fi after_success: diff --git a/flake8-framework.ini b/flake8-framework.ini index 32ced73dd7..f8bff04355 100644 --- a/flake8-framework.ini +++ b/flake8-framework.ini @@ -1,3 +1,3 @@ [flake8] -ignore = W391,F403,E221,F821 +ignore = W391,F403,E221 max-line-length = 79 |