Skip to content

Deactivate clang format #8998

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

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ jobs:
exit 1
fi

c-source:
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
permissions:
id-token: write
contents: read
with:
repository: pytorch/vision
test-infra-ref: main
script: |
set -euo pipefail

echo '::group::Setup environment'
CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)"
conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
conda activate ci
echo '::endgroup::'


echo '::group::Lint C source'
set +e
./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"

if [ $? -ne 0 ]; then
git --no-pager diff
exit 1
fi
echo '::endgroup::'
# c-source:
# uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
# permissions:
# id-token: write
# contents: read
# with:
# repository: pytorch/vision
# test-infra-ref: main
# script: |
# set -euo pipefail

# echo '::group::Setup environment'
# CONDA_PATH=$(which conda)
# eval "$(${CONDA_PATH} shell.bash hook)"
# conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
# conda activate ci
# echo '::endgroup::'


# echo '::group::Lint C source'
# set +e
# ./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"

# if [ $? -ne 0 ]; then
# git --no-pager diff
# exit 1
# fi
# echo '::endgroup::'


python-types:
Expand Down
Loading