Run flake8 checks on new untracked files (#1510)

This commit is contained in:
Adam J. Stewart 2016-08-28 21:35:09 -05:00 committed by Todd Gamblin
parent 974749aaf6
commit d39322e278

View File

@ -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))