We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8766afb + ea472da commit ee00540Copy full SHA for ee00540
lint.sh
@@ -47,7 +47,10 @@ if [ "$LINT" == true ]; then
47
fi
48
49
# Tests any new python files
50
- NEW_FILES=$(git diff master --name-status -u -- "*.py" | grep ^A | cut -c 3- | paste -sd " " -)
+ git fetch --unshallow --quiet
51
+ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
52
+ git fetch origin --quiet
53
+ NEW_FILES=$(git diff origin/master --name-status -u -- "*.py" | grep ^A | cut -c 3- | paste -sd " " -)
54
if [ -n "$NEW_FILES" ]; then
55
echo "Linting newly added files with strict rules"
56
flake8 --isolated $(eval echo $NEW_FILES)
0 commit comments