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 8461d901a770516cf2069fe3bce979a6f8fc8d76...29c9a184c11ed0ba46a8c91b6fbeea828c9fce0d libclc/test/lit.cfg.py `````````` </details> <details> <summary> View the diff from darker here. </summary> ``````````diff --- lit.cfg.py 2024-04-08 13:26:14.000000 +0000 +++ lit.cfg.py 2024-04-08 13:29:55.745880 +0000 @@ -8,42 +8,47 @@ from lit.llvm.subst import FindTool # Configuration file for the 'lit' test runner. # name: The name of this test suite. -config.name = 'libclc' +config.name = "libclc" # testFormat: The test format to use to interpret tests. config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell) # suffixes: A list of file extensions to treat as test files. -config.suffixes = ['.cl', ] +config.suffixes = [ + ".cl", +] # test_source_root: The root path where tests are located. config.test_source_root = os.path.join(os.path.dirname(__file__)) # test_exec_root: The root path where tests should be run. -config.test_exec_root = os.path.join(config.test_run_dir, 'test') +config.test_exec_root = os.path.join(config.test_run_dir, "test") llvm_config.use_default_substitutions() -target = lit_config.params.get('target', '') -builtins = lit_config.params.get('builtins', '') +target = lit_config.params.get("target", "") +builtins = lit_config.params.get("builtins", "") clang_flags = [ - "-fno-builtin", - "-target", target, - "-Xclang", "-mlink-builtin-bitcode", - "-Xclang", os.path.join(config.libclc_lib_dir, builtins), - "-nogpulib", + "-fno-builtin", + "-target", + target, + "-Xclang", + "-mlink-builtin-bitcode", + "-Xclang", + os.path.join(config.libclc_lib_dir, builtins), + "-nogpulib", ] -cpu = lit_config.params.get('cpu', '') +cpu = lit_config.params.get("cpu", "") if cpu: clang_flags.append(f"-mcpu={cpu}") llvm_config.use_clang(additional_flags=clang_flags) -tools = ['llvm-dis', 'not'] +tools = ["llvm-dis", "not"] tool_dirs = [config.llvm_tools_dir] llvm_config.add_tool_substitutions(tools, tool_dirs) `````````` </details> https://github.com/llvm/llvm-project/pull/87989 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits