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 origin/main...HEAD 
clang/bindings/python/tests/cindex/test_environment_variable.py 
clang/bindings/python/clang/cindex.py 
clang/bindings/python/tests/cindex/test_access_specifiers.py 
clang/bindings/python/tests/cindex/test_cdb.py 
clang/bindings/python/tests/cindex/test_code_completion.py 
clang/bindings/python/tests/cindex/test_comment.py 
clang/bindings/python/tests/cindex/test_cursor.py 
clang/bindings/python/tests/cindex/test_cursor_kind.py 
clang/bindings/python/tests/cindex/test_cursor_language.py 
clang/bindings/python/tests/cindex/test_diagnostics.py 
clang/bindings/python/tests/cindex/test_exception_specification_kind.py 
clang/bindings/python/tests/cindex/test_file.py 
clang/bindings/python/tests/cindex/test_index.py 
clang/bindings/python/tests/cindex/test_lib.py 
clang/bindings/python/tests/cindex/test_linkage.py 
clang/bindings/python/tests/cindex/test_location.py 
clang/bindings/python/tests/cindex/test_source_range.py 
clang/bindings/python/tests/cindex/test_tls_kind.py 
clang/bindings/python/tests/cindex/test_token_kind.py 
clang/bindings/python/tests/cindex/test_tokens.py 
clang/bindings/python/tests/cindex/test_translation_unit.py 
clang/bindings/python/tests/cindex/test_type.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
--- clang/cindex.py     2025-12-03 18:16:33.000000 +0000
+++ clang/cindex.py     2025-12-03 18:18:03.253302 +0000
@@ -4471,11 +4471,11 @@
             msg = str(e) + (
                 "To provide the path to libclang, you can use the environment 
variable "
                 "LIBCLANG_LIBRARY_PATH or call Config.set_library_path(). "
                 "Alternatively, you can specify the exact library file using "
                 "LIBCLANG_LIBRARY_FILE or Config.set_library_file()."
-             )
+            )
             raise LibclangError(msg)
 
         return library
 
 
--- tests/cindex/test_environment_variable.py   2025-12-03 18:16:33.000000 +0000
+++ tests/cindex/test_environment_variable.py   2025-12-03 18:18:03.727338 +0000
@@ -4,11 +4,10 @@
 import os
 from clang.cindex import Config
 
 
 class TestEnvironementVariable(unittest.TestCase):
-
     def test_working_libclang_library_file(self):
         ref_libclang_library_file = Config().get_filename()
         with unittest.mock.patch.dict(
             os.environ, {"LIBCLANG_LIBRARY_FILE": ref_libclang_library_file}
         ):

``````````

</details>


https://github.com/llvm/llvm-project/pull/170201
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to