pre-commit failed #1993
Replies: 3 comments 1 reply
-
You should install pre-commit locally. If there are formatting issues, it will say to you at commit (but forbid to do it). Usually it changes automatically the code. You need to git add one more time, then git commit. And voila |
Beta Was this translation helpful? Give feedback.
-
update-copyright passed but clang-format failed.
Do I need to install anything else? A working clang-format is already installed. |
Beta Was this translation helpful? Give feedback.
-
I downloaded clang-format and git-clang-format again and replaced them in the .cache directory again and now it works. I thought I had already tried that but I probably did something different this time. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to do a pull request but pre-commit failed. The copyright year is 2023 and there is a formatting issue. What did I miss and how do I fix this? Git is still a mystery to me.
Beta Was this translation helpful? Give feedback.
All reactions