Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83c92a1

Browse files
jnothmanlesteve
authored andcommitted
CI limit diff to commit range in flake8_diff.sh (#8097)
1 parent 3f0af16 commit 83c92a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build_tools/travis/flake8_diff.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ check_files() {
128128
options="$2"
129129
# Conservative approach: diff without context (--unified=0) so that code
130130
# that was not changed does not create failures
131-
git diff --unified=0 $COMMIT -- $files | flake8 --diff --show-source $options
131+
git diff --unified=0 $COMMIT_RANGE -- $files | flake8 --diff --show-source $options
132132
}
133133

134134
if [[ "$MODIFIED_FILES" == "no_match" ]]; then

0 commit comments

Comments
 (0)