Skip to content

Commit a311667

Browse files
committed
doc: document undocumented attrs
1 parent b23b9d4 commit a311667

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

extensions.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def _bazel_bats_deps_impl(ctx):
3131

3232

3333
_dep_class = tag_class( attrs = {
34-
"version": attr.string(),
35-
"sha256": attr.string(),
34+
"version": attr.string(doc = "The version of the dependency to download."),
35+
"sha256": attr.string(doc = "The sha256 hash of the dependency archive."),
3636
})
3737
bazel_bats_deps = module_extension(
3838
implementation = _bazel_bats_deps_impl,

rules.bzl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ def _bats_with_bats_assert_test_impl(ctx):
9494
return [DefaultInfo(runfiles = runfiles)]
9595

9696
_bats_test_attrs = {
97-
"data": attr.label_list(allow_files = True),
98-
"deps": attr.label_list(),
97+
"data": attr.label_list(
98+
allow_files = True,
99+
doc = "List of data dependencies for the test.",
100+
),
101+
"deps": attr.label_list(doc = "List of other dependencies for the test."),
99102
"env": attr.string_dict(
100103
doc = "A list of key-value pairs of environment variables to define",
101104
),

0 commit comments

Comments
 (0)