Skip to content

Commit a1820c3

Browse files
committed
style: make buildifier happy
1 parent 05c21af commit a1820c3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ load("@aspect_rules_js//js:defs.bzl", "js_binary")
44
#
55
# load("@bazel-orfs//tools/pin:pin.bzl", "pin_data")
66
load("@bazel-orfs//toolchains/scala:chisel.bzl", "chisel_library")
7+
78
# Temporarily disabled during BCR rules_scala migration
89
# load("@bazel-orfs//toolchains/scala:scala_bloop.bzl", "scala_bloop")
910
load("@bazel_orfs_rules_python//python:defs.bzl", "py_binary")

toolchains/scala/chisel.bzl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def chisel_library(name, **kwargs):
6161

6262
def _chisel_test_wrapper_impl(ctx):
6363
"""Implementation of chisel_test wrapper that creates a launcher script with expanded env vars."""
64+
6465
# Get the underlying scala_test target
6566
test_target = ctx.attr.test
6667

@@ -169,22 +170,23 @@ exec "$RUNFILES_DIR/{workspace}/{test_path}" "$@"
169170
_chisel_test_with_env_test = rule(
170171
implementation = _chisel_test_wrapper_impl,
171172
attrs = {
173+
"data": attr.label_list(
174+
allow_files = True,
175+
),
176+
"env": attr.string_dict(),
172177
"test": attr.label(
173178
mandatory = True,
174179
providers = [DefaultInfo],
175180
executable = True,
176181
cfg = "target",
177182
),
178-
"env": attr.string_dict(),
179-
"data": attr.label_list(
180-
allow_files = True,
181-
),
182183
},
183184
test = True,
184185
)
185186

186187
def chisel_test(name, **kwargs):
187188
"""Wrapper for scala_test with Chisel and Verilator configuration."""
189+
188190
# Extract env dict that needs expansion
189191
env_to_expand = {
190192
# Doesn't work in hermetic mode, no point in Bazel, no home folder

0 commit comments

Comments
 (0)