-
Notifications
You must be signed in to change notification settings - Fork 7.2k
use clang-format in pre-commit #5317
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
Conversation
💊 CI failures summary and remediationsAs of commit 7198db8 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
| Job | Step | Action |
|---|---|---|
| Lint code format | 🔁 rerun | |
| curl -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh | ||
| sh conda.sh -b | ||
| source $HOME/miniconda3/bin/activate | ||
| conda install -yq conda-build cmake | ||
| packaging/build_cmake.sh | ||
| 🔁 rerun |
This comment was automatically generated by Dr. CI (expand for details).
Please report bugs/suggestions to the (internal) Dr. CI Users group.
|
A couple of notes:
|
Not sure I understand. There is difference in that we currently download the binary from https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 whereas the hook downloads it from the official LLVM repo. I couldn't find any mention of this link outside of PyTorch. As you can see from the failing CI job, there seem to be differences. If that is intended, i.e. the binary we currently use is actually doing something different from the official one, we cannot use the hook anyway.
It doesn't force a specific workflow. You can still run everything manually if you like. In this specific case, It should actually help the user. Our contribution guide doesn't mention |
This reverts commit e34165b.
See references at #2872. It might no longer be the case, if the tests pass without modifications on the C++ files you should be OK. Worth checking.
Could you explain how one runs the clang now without any use of pre-commit? For example, right now my IDE is setup to run |
That is not the case, thus we probably can't use the hook. |
Follow-up to pytorch/text#1546 (review).