diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2017-04-25 12:58:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 12:58:24 -0700 |
commit | 3e508884fac8a52ea0d2a1887fd6bdb0fc5a0abe (patch) | |
tree | d1ad61de1395a63b37589b4616d171efdb47c37d /lib | |
parent | fc9896ed45afe1b5ec228ed3ceb2b27ea2a1854c (diff) | |
download | spack-3e508884fac8a52ea0d2a1887fd6bdb0fc5a0abe.tar.gz spack-3e508884fac8a52ea0d2a1887fd6bdb0fc5a0abe.tar.bz2 spack-3e508884fac8a52ea0d2a1887fd6bdb0fc5a0abe.tar.xz spack-3e508884fac8a52ea0d2a1887fd6bdb0fc5a0abe.zip |
spack flake8 should exempt line-wrapped directives (#3990)
- Omit final paren from regular expressions in cmd/flake8.py
- Allows long directives to be exempted even if they are wrapped.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/flake8.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/spack/spack/cmd/flake8.py b/lib/spack/spack/cmd/flake8.py index 33c06155ae..6cfd98dbb4 100644 --- a/lib/spack/spack/cmd/flake8.py +++ b/lib/spack/spack/cmd/flake8.py @@ -58,14 +58,14 @@ exemptions = { r'^\s*svn\s*=', r'^\s*hg\s*=', r'^\s*list_url\s*=', - r'^\s*version\(.*\)', - r'^\s*variant\(.*\)', - r'^\s*provides\(.*\)', - r'^\s*extends\(.*\)', - r'^\s*depends_on\(.*\)', - r'^\s*conflicts\(.*\)', - r'^\s*resource\(.*\)', - r'^\s*patch\(.*\)', + r'^\s*version\(', + r'^\s*variant\(', + r'^\s*provides\(', + r'^\s*extends\(', + r'^\s*depends_on\(', + r'^\s*conflicts\(', + r'^\s*resource\(', + r'^\s*patch\(', ], # Exempt '@when' decorated functions from redefinition errors. 'F811': [ |