diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-07-15 12:11:41 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-07-15 12:11:41 -0500 |
commit | a4a2f179c712df806f12e0904d1d3eddcd54dfef (patch) | |
tree | dfb8bcc627e92b9d2e8a517bcc9dafecd203db84 /share | |
parent | d24c11f2b10a180316168f2078f9ba1bfeb5bb23 (diff) | |
download | spack-a4a2f179c712df806f12e0904d1d3eddcd54dfef.tar.gz spack-a4a2f179c712df806f12e0904d1d3eddcd54dfef.tar.bz2 spack-a4a2f179c712df806f12e0904d1d3eddcd54dfef.tar.xz spack-a4a2f179c712df806f12e0904d1d3eddcd54dfef.zip |
Updates to run-flake8 test
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/qa/run-flake8 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/spack/qa/run-flake8 b/share/spack/qa/run-flake8 index 57534eb6e2..595df417ec 100755 --- a/share/spack/qa/run-flake8 +++ b/share/spack/qa/run-flake8 @@ -18,7 +18,7 @@ if [[ ! $flake8 ]]; then fi # Check if changed files are flake8 conformant [framework] -changed=$(git diff --name-only develop... | grep '.py$') +changed=$(git diff --name-only --find-renames develop... | grep '.py$') # Add approved style exemptions to the changed packages. for file in $changed; do @@ -26,6 +26,7 @@ for file in $changed; do cp "$file" "$file~" # Exempt lines with urls and descriptions from overlong line errors. + perl -i -pe 's/^(\s*homepage\s*=.*)$/\1 # NOQA: ignore=E501/' $file perl -i -pe 's/^(\s*url\s*=.*)$/\1 # NOQA: ignore=E501/' $file perl -i -pe 's/^(\s*version\(.*\).*)$/\1 # NOQA: ignore=E501/' $file perl -i -pe 's/^(\s*variant\(.*\).*)$/\1 # NOQA: ignore=E501/' $file |