diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-01-19 18:55:18 +0100 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-01-19 18:55:18 +0100 |
commit | ae7c999712167ed68a6e1a45c0f8f8dfc9fb5b17 (patch) | |
tree | 112832fd5c4a71e25b237b727029e075e212ca1d | |
parent | f3d62f1d3b2d53e88bcea8e6ea8b1c5abe5018b1 (diff) | |
download | spack-ae7c999712167ed68a6e1a45c0f8f8dfc9fb5b17.tar.gz spack-ae7c999712167ed68a6e1a45c0f8f8dfc9fb5b17.tar.bz2 spack-ae7c999712167ed68a6e1a45c0f8f8dfc9fb5b17.tar.xz spack-ae7c999712167ed68a6e1a45c0f8f8dfc9fb5b17.zip |
code checking : added flake8
-rw-r--r-- | .travis.yml | 3 | ||||
-rw-r--r-- | flake8.ini | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 4207f8d08b..2d9bbabe10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ sudo: false install: - "pip install coveralls" - "pip install pep8" + - "pip install flake8" before_install: # Need this for the git tests to succeed. @@ -25,6 +26,8 @@ script: # Checks if the file that have been changed are pep8 conformant - CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py/g'` - if [[ ${CHANGED_PYTHON_FILES} ]] ; then pep8 --max-line-length=120 ${CHANGED_PYTHON_FILES} ; fi + - if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8.ini ${CHANGED_PYTHON_FILES} ; fi + after_success: - coveralls diff --git a/flake8.ini b/flake8.ini new file mode 100644 index 0000000000..757c71705e --- /dev/null +++ b/flake8.ini @@ -0,0 +1,3 @@ +[flake8] +ignore = W391,F403 +max-line-length = 120
\ No newline at end of file |