-
Notifications
You must be signed in to change notification settings - Fork 741
Fixing clang-format version to what PyTorch uses. #981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,9 +20,9 @@ if [ "${status}" -ne 0 ]; then | |
| fi | ||
|
|
||
| printf "\x1b[34mRunning clang-format: " | ||
| clang-format --version | ||
| ./clang-format --version | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our root_dir is ./ here. Similar to what we do above with conda. |
||
| printf "\x1b[0m\n" | ||
| git-clang-format origin/master | ||
| git-clang-format --binary ./clang-format origin/master | ||
| git diff --exit-code | ||
| status=$? | ||
| exit_status="$((exit_status+status))" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,9 @@ conda activate "${env_dir}" | |
| printf "* Installing dependencies (except PyTorch)\n" | ||
| conda env update --file "${this_dir}/environment.yml" --prune | ||
| if [ "${os}" == Linux ] ; then | ||
| pip install clang-format | ||
| clangformat_path="${root_dir}/clang-format" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As far as I understand other libraries like conda are put directly in root. So I do the same with clang-format. |
||
| curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o "${clangformat_path}" | ||
| chmod +x "${clangformat_path}" | ||
| fi | ||
|
|
||
| # 4. Buld codecs | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe clang-format is not actually used in the specific tests, so I removed it.