summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbecker33 <becker33@llnl.gov>2016-07-15 13:55:01 -0700
committerGitHub <noreply@github.com>2016-07-15 13:55:01 -0700
commit1585c014d70f84e5af09d8f902932def90c565e7 (patch)
tree7f59b4ff224075c3695d04afabbd4f3fa0e581a1
parent37ce4108ce22ae77488303671048e2f34e05d5c3 (diff)
parenta4a2f179c712df806f12e0904d1d3eddcd54dfef (diff)
downloadspack-1585c014d70f84e5af09d8f902932def90c565e7.tar.gz
spack-1585c014d70f84e5af09d8f902932def90c565e7.tar.bz2
spack-1585c014d70f84e5af09d8f902932def90c565e7.tar.xz
spack-1585c014d70f84e5af09d8f902932def90c565e7.zip
Merge pull request #1259 from adamjstewart/fixes/run-flake8
Updates to run-flake8 test
-rwxr-xr-xshare/spack/qa/run-flake83
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