• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""The input file for the aspect test"""
2
3def my_aspect_impl(ctx):
4    return []
5
6my_aspect = aspect(
7    implementation = my_aspect_impl,
8    doc = "This is my aspect. It does stuff.",
9    attr_aspects = ["deps", "attr_aspect"],
10    attrs = {
11        "first": attr.label(mandatory = True, allow_single_file = True),
12        "second": attr.string_dict(mandatory = True),
13    },
14)
15
16other_aspect = aspect(
17    implementation = my_aspect_impl,
18    doc = "This is another aspect.",
19    attr_aspects = ["*"],
20    attrs = {
21        "_hidden": attr.string(),
22        "third": attr.int(mandatory = True),
23    },
24)
25