Skip to content

Commit

Permalink
fix it (ray-project#2735)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericl authored Aug 24, 2018
1 parent b4c47a5 commit bcab5bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/yapf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ format_changed() {
MERGEBASE="$(git merge-base upstream/master HEAD)"

if ! git diff --diff-filter=ACM --quiet --exit-code "$MERGEBASE" -- '*.py' &>/dev/null; then
declare -a unformatted_files && mapfile -t unformatted_files < <(git diff --name-only --diff-filter=ACM "$MERGEBASE" -- '*.py')
yapf --in-place "${YAPF_EXCLUDES[@]}" "${YAPF_FLAGS[@]}" -- "${unformatted_files[@]}"
git diff --name-only --diff-filter=ACM "$MERGEBASE" -- '*.py' | xargs -P 5 \
yapf --in-place "${YAPF_EXCLUDES[@]}" "${YAPF_FLAGS[@]}"
fi
}

Expand Down

0 comments on commit bcab5bc

Please sign in to comment.