aboutsummaryrefslogtreecommitdiff
path: root/gazelle/python/testdata/per_file_non_empty_init/BUILD.out
diff options
context:
space:
mode:
Diffstat (limited to 'gazelle/python/testdata/per_file_non_empty_init/BUILD.out')
-rw-r--r--gazelle/python/testdata/per_file_non_empty_init/BUILD.out20
1 files changed, 20 insertions, 0 deletions
diff --git a/gazelle/python/testdata/per_file_non_empty_init/BUILD.out b/gazelle/python/testdata/per_file_non_empty_init/BUILD.out
new file mode 100644
index 0000000..ee4a417
--- /dev/null
+++ b/gazelle/python/testdata/per_file_non_empty_init/BUILD.out
@@ -0,0 +1,20 @@
+load("@rules_python//python:defs.bzl", "py_library")
+
+# gazelle:python_generation_mode file
+# gazelle:python_generation_mode_per_file_include_init true
+
+py_library(
+ name = "__init__",
+ srcs = ["__init__.py"],
+ visibility = ["//:__subpackages__"],
+ deps = [":foo"],
+)
+
+py_library(
+ name = "foo",
+ srcs = [
+ "__init__.py",
+ "foo.py",
+ ],
+ visibility = ["//:__subpackages__"],
+)