[llvm] code-format: Improve the code-format-helper to be able to run as a git hook (PR #73957)
Tobias Hieta via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 05:53:17 PST 2023
================
@@ -31,9 +45,10 @@ def comment_tag(self) -> str:
def instructions(self) -> str:
raise NotImplementedError()
- def format_run(
- self, changed_files: list[str], args: argparse.Namespace
- ) -> str | None:
+ def has_tool(self) -> bool:
+ raise NotImplementedError()
+
+ def format_run(self, changed_files: list[str], args: FormatArgs) -> str | None:
----------------
tru wrote:
I tested this script with Python 3.6 now, so we should be good.
https://github.com/llvm/llvm-project/pull/73957
More information about the llvm-commits
mailing list