From e2065fad726a7b41e7fd4465c322b585b2aaa7f1 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 20 May 2019 15:39:25 -0500 Subject: Make flake8 check spack script as well as .py files (#11513) * Make flake8 check bin/spack --- lib/spack/spack/cmd/flake8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/flake8.py b/lib/spack/spack/cmd/flake8.py index 105ede2c70..8c2b90a2a1 100644 --- a/lib/spack/spack/cmd/flake8.py +++ b/lib/spack/spack/cmd/flake8.py @@ -127,7 +127,7 @@ def changed_files(args): for f in files: # Ignore non-Python files - if not f.endswith('.py'): + if not (f.endswith('.py') or f == 'bin/spack'): continue # Ignore files in the exclude locations -- cgit v1.2.3-60-g2f50