summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJoseph Ciurej <ciurej1@llnl.gov>2016-05-16 11:09:44 -0700
committerJoseph Ciurej <ciurej1@llnl.gov>2016-05-16 11:09:44 -0700
commit52c8bedb9ce59998708b7562d9c784b44b466c1d (patch)
treed33392f4e42fb909845e4d5080f4a50a182c063d /share
parent53df9fbb4fa8938646e4fb3d4728f4cc5499c8a5 (diff)
downloadspack-52c8bedb9ce59998708b7562d9c784b44b466c1d.tar.gz
spack-52c8bedb9ce59998708b7562d9c784b44b466c1d.tar.bz2
spack-52c8bedb9ce59998708b7562d9c784b44b466c1d.tar.xz
spack-52c8bedb9ce59998708b7562d9c784b44b466c1d.zip
Updated style checking to ignore refinition errors for '@when' fxns.
Updated the Scotch package to conform to PEP8 standards and to test style checking improvements.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-flake85
1 files changed, 4 insertions, 1 deletions
diff --git a/share/spack/qa/run-flake8 b/share/spack/qa/run-flake8
index 722c7fcba6..42da56222c 100755
--- a/share/spack/qa/run-flake8
+++ b/share/spack/qa/run-flake8
@@ -21,9 +21,12 @@ fi
changed=$(git diff --name-only develop... | grep '.py$')
# Exempt url lines in changed packages from overlong line errors.
+# Exempt functions defined with '@when' decorator from redefinition errors.
for file in $changed; do
if [[ $file = *package.py ]]; then
- perl -i~ -pe 's/^(\s*url\s*=.*)$/\1 # NOQA: ignore=E501/' $file;
+ cp "$file" "$file~"
+ perl -i -pe 's/^(\s*url\s*=.*)$/\1 # NOQA: ignore=E501/' $file
+ perl -i -pe 's/^(\s*\@when\(.*\).*)$/\1 # NOQA: ignore=F811/' $file
fi
done