mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
Fixes #69500 See the issue for details. Pull Request resolved: https://github.com/pytorch/pytorch/pull/75385 Approved by: https://github.com/seemethere, https://github.com/malfet
10 lines
233 B
Bash
Executable file
10 lines
233 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Running pre-commit clang-tidy"
|
|
git diff HEAD > pr.diff
|
|
python3 -m tools.linter.clang_tidy --diff-file "pr.diff"
|
|
rm pr.diff
|
|
|
|
echo "Running pre-commit clang-format"
|
|
tools/linter/git-clang-format HEAD~ --force
|