Skip to content

Commit f8215ca

Browse files
🎨 pre-commit fixes
1 parent df10af6 commit f8215ca

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

plugins/catalyst/test/CMakeLists.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,11 @@ configure_lit_site_cfg(
1515
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
1616
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py)
1717

18-
set(CATALYST_OPT_TEST_DEPENDS
19-
FileCheck
20-
mqt-core-catalyst-plugin
21-
)
18+
set(CATALYST_OPT_TEST_DEPENDS FileCheck mqt-core-catalyst-plugin)
2219

2320
add_lit_testsuite(
24-
check-mqt-core-catalyst-plugin
25-
"Running the mqt-core-catalyst-plugin regression tests"
26-
${CMAKE_CURRENT_BINARY_DIR}
27-
DEPENDS ${CATALYST_OPT_TEST_DEPENDS}
28-
)
21+
check-mqt-core-catalyst-plugin "Running the mqt-core-catalyst-plugin regression tests"
22+
${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CATALYST_OPT_TEST_DEPENDS})
2923
set_target_properties(check-mqt-core-catalyst-plugin PROPERTIES FOLDER "Tests" EXCLUDE_FROM_ALL ON)
3024

31-
add_lit_testsuites(CATALYST_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${CATALYST_OPT_TEST_DEPENDS})
25+
add_lit_testsuites(CATALYST_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${CATALYST_OPT_TEST_DEPENDS})

plugins/catalyst/test/lit.cfg.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
1313
This file configures the LLVM LIT testing infrastructure for MLIR dialect tests.
1414
"""
15+
1516
from __future__ import annotations
17+
1618
from pathlib import Path
19+
1720
import lit.formats
1821

1922
config = globals().get("config")
2023
if config is None:
21-
raise RuntimeError("LIT config object is missing. Ensure lit.site.cfg.py is loaded first.")
24+
msg = "LIT config object is missing. Ensure lit.site.cfg.py is loaded first."
25+
raise RuntimeError(msg)
2226

2327
config.name = "MQT MLIR Catalyst Plugin test suite"
2428
config.test_format = lit.formats.ShTest(execute_external=True)
@@ -30,12 +34,14 @@
3034
# Optional: ensure FileCheck is available if CMake provided a tools dir
3135
try:
3236
from lit.llvm import llvm_config
37+
3338
if getattr(config, "llvm_tools_dir", None):
3439
llvm_config.with_environment("PATH", config.llvm_tools_dir, append_path=True)
3540
except Exception:
3641
pass # non-fatal; assume FileCheck is on PATH
3742

3843
# Dynamic plugin path substitution (prefers installed wheel; env override supported by the helper)
3944
from mqt.core.plugins.catalyst import get_catalyst_plugin_abs_path
45+
4046
plugin_path = get_catalyst_plugin_abs_path()
41-
config.substitutions.append(("%mqt_plugin_path%", str(plugin_path)))
47+
config.substitutions.append(("%mqt_plugin_path%", str(plugin_path)))

0 commit comments

Comments
 (0)