Skip to content
Snippets Groups Projects
Commit d39322e2 authored by Adam J. Stewart's avatar Adam J. Stewart Committed by Todd Gamblin
Browse files

Run flake8 checks on new untracked files (#1510)

parent 974749aa
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment