Skip to content

Commit b15b5a7

Browse files
committed
refactor(qemu): extract :config as separate Bazel target
Split //score/itf/plugins/qemu into :config (config.py + pydantic only) and :qemu (rest of plugin, depends on :config). Unit tests depend on :config to avoid pulling in qemu infrastructure as coverage denominator.
1 parent 10a703d commit b15b5a7

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • score/itf/plugins/qemu

score/itf/plugins/qemu/BUILD

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,28 @@
1414
load("@itf_pip//:requirements.bzl", "requirement")
1515
load("@rules_python//python:defs.bzl", "py_library")
1616

17+
py_library(
18+
name = "config",
19+
srcs = ["config.py"],
20+
imports = ["."],
21+
visibility = ["//visibility:public"],
22+
deps = [requirement("pydantic")],
23+
)
24+
1725
py_library(
1826
name = "qemu",
1927
srcs = [
2028
"__init__.py",
2129
"checks.py",
22-
"config.py",
2330
"qemu.py",
2431
"qemu_process.py",
2532
"qemu_target.py",
2633
],
2734
imports = ["."],
2835
visibility = ["//visibility:public"],
2936
deps = [
37+
":config",
3038
"//score/itf/core/process",
3139
"//score/itf/core/utils",
32-
requirement("pydantic"),
3340
],
3441
)

0 commit comments

Comments
 (0)