Skip to content
Snippets Groups Projects
Commit 83c92a1b authored by Joel Nothman's avatar Joel Nothman Committed by Loïc Estève
Browse files

CI limit diff to commit range in flake8_diff.sh (#8097)

parent 3f0af165
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ check_files() {
options="$2"
# Conservative approach: diff without context (--unified=0) so that code
# that was not changed does not create failures
git diff --unified=0 $COMMIT -- $files | flake8 --diff --show-source $options
git diff --unified=0 $COMMIT_RANGE -- $files | flake8 --diff --show-source $options
}
if [[ "$MODIFIED_FILES" == "no_match" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment