diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-08-28 21:35:09 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-08-28 19:35:09 -0700 |
commit | d39322e278b287f88f062cd0aa8a4edc345dee73 (patch) | |
tree | d558343c46aa4579b0eb26e04bc5691a8c034c4f /share | |
parent | 974749aaf6fb4f397c1a81940bb338c9f5a98669 (diff) | |
download | spack-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-x | share/spack/qa/run-flake8 | 2 |
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)) |