diff --git a/.circleci/config.yml b/.circleci/config.yml index e04fc2f18c32..7ec8921b067a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -182,7 +182,9 @@ run_clang_format: &run_clang_format find -name '*.cpp' -o -name '*.h' | xargs clang-format-7 -i -style=file git_status=$(git status --porcelain) if [[ $git_status ]]; then - echo "clang-format-7 is not happy, please run \"clang-format-7 -i -style /PATH/TO/foo.cpp\" to the following files" + git diff + echo "clang-format-7 recommends the changes above, please manually apply them OR automatically apply the changes " + echo "by running \"clang-format-7 -i -style /PATH/TO/foo.cpp\" to the following files" echo "${git_status}" exit 1 else @@ -207,7 +209,9 @@ run_yapf: &run_yapf yapf -i -r *.py test/ scripts/ torch_xla/ git_status=$(git status --porcelain) if [[ $git_status ]]; then - echo "yapf is not happy, please run `yapf -i /PATH/TO/foo.py` to the following files" + git diff + echo "yapf recommends the changes above, please manually apply them OR automatically apply the changes " + echo "by running `yapf -i /PATH/TO/foo.py` to the following files" echo "${git_status}" exit 1 else