[llvm] [utils][filecheck-lint]: speedup filecheck_lint (PR #94191)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 08:03:51 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 6e22b538da4b09efb10a59582a3f43d8128ae7d1...01bd17177bc2f5692c6dac4d5a834f41bd92dca5 llvm/utils/filecheck_lint/filecheck_lint.py llvm/utils/filecheck_lint/filecheck_lint_test.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- filecheck_lint.py	2024-06-03 15:00:19.000000 +0000
+++ filecheck_lint.py	2024-06-03 15:03:23.840785 +0000
@@ -88,11 +88,13 @@
 
     content: str
     start_byte: int
     end_byte: int
 
-    def __init__(self, content: str, start_byte: int, end_byte: int):  # pylint: disable=g-doc-args
+    def __init__(
+        self, content: str, start_byte: int, end_byte: int
+    ):  # pylint: disable=g-doc-args
         """
         `start_byte` and `end_byte` are assumed to be on the same line.
         """
         self.content = content
         self.start_byte = start_byte

``````````

</details>


https://github.com/llvm/llvm-project/pull/94191


More information about the llvm-commits mailing list