Skip to content

Commit 8a0434d

Browse files
authored
Switching to Pytorch's clang-formatter. (#2872)
* Switching to Pytorch's clang-formatter. * Replacing binary.
1 parent 8088cc9 commit 8a0434d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ jobs:
127127
- checkout
128128
- run:
129129
command: |
130-
sudo apt-get update -y
131-
sudo apt-get install -y clang-format
132-
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc
130+
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o clang-format
131+
chmod +x clang-format
132+
sudo mv clang-format /opt/clang-format
133+
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format
133134
134135
binary_linux_wheel:
135136
<<: *binary_common

.circleci/config.yml.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ jobs:
127127
- checkout
128128
- run:
129129
command: |
130-
sudo apt-get update -y
131-
sudo apt-get install -y clang-format
132-
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc
130+
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o clang-format
131+
chmod +x clang-format
132+
sudo mv clang-format /opt/clang-format
133+
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format
133134

134135
binary_linux_wheel:
135136
<<: *binary_common

0 commit comments

Comments
 (0)