summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-08-28 21:35:09 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2016-08-28 19:35:09 -0700
commitd39322e278b287f88f062cd0aa8a4edc345dee73 (patch)
treed558343c46aa4579b0eb26e04bc5691a8c034c4f /share
parent974749aaf6fb4f397c1a81940bb338c9f5a98669 (diff)
downloadspack-d39322e278b287f88f062cd0aa8a4edc345dee73.tar.gz
spack-d39322e278b287f88f062cd0aa8a4edc345dee73.tar.bz2
spack-d39322e278b287f88f062cd0aa8a4edc345dee73.tar.xz
spack-d39322e278b287f88f062cd0aa8a4edc345dee73.zip
Run flake8 checks on new untracked files (#1510)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-flake82
1 files changed, 2 insertions, 0 deletions
diff --git a/share/spack/qa/run-flake8 b/share/spack/qa/run-flake8
index e41cd0d471..ffc82313a5 100755
--- a/share/spack/qa/run-flake8
+++ b/share/spack/qa/run-flake8
@@ -21,6 +21,8 @@ changed=($(git diff --name-only --find-renames develop... -- '*.py'))
changed+=($(git diff --name-only --find-renames --cached -- '*.py'))
# Add changed files that are unstaged
changed+=($(git diff --name-only --find-renames -- '*.py'))
+# Add new files that are untracked
+changed+=($(git ls-files --exclude-standard --other -- '*.py'))
# Ensure that each file in the array is unique
changed=($(printf '%s\n' "${changed[@]}" | sort -u))