From 12c1216c34f70b95ee41eaa7aa4cc0942dc4d17c Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Fri, 31 Mar 2017 17:51:09 -0700 Subject: fix flake8 ignore syntax (use E instead of ignore) (#3651) --- lib/spack/spack/cmd/flake8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/cmd/flake8.py b/lib/spack/spack/cmd/flake8.py index 47f531fe84..19724142bb 100644 --- a/lib/spack/spack/cmd/flake8.py +++ b/lib/spack/spack/cmd/flake8.py @@ -129,7 +129,7 @@ def filter_file(source, dest, output=False): for code, patterns in errors.items(): for pattern in patterns: if pattern.search(line): - line += (" # NOQA: ignore=%d" % code) + line += (" # NOQA: E%d" % code) break oline = line + '\n' -- cgit v1.2.3-70-g09d2