-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
executable file
·66 lines (58 loc) · 2.04 KB
/
BUILD
File metadata and controls
executable file
·66 lines (58 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""Targets in the repository root"""
# We prefer BUILD instead of BUILD.bazel
# gazelle:build_file_name BUILD
load("@gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@npm//:defs.bzl", "npm_link_all_packages")
# Python gazelle config moved to //bazel/tools/python to avoid eager-fetching all pip packages during CI analysis
npm_link_all_packages(name = "node_modules")
# gazelle:prefix github.com/jomcgi/homelab
# gazelle:exclude .claude
# gazelle:semgrep_target_kinds py_venv_binary
# Custom gazelle binary with ArgoCD and wrangler extensions
gazelle_binary(
name = "gazelle_binary",
languages = [
"//bazel/helm/gazelle",
"//bazel/wrangler/gazelle",
"//bazel/semgrep/defs/gazelle",
"@bazel_skylib_gazelle_plugin//bzl",
"@gazelle//language/go",
"@gazelle//language/proto",
"@rules_python_gazelle_plugin//python",
],
)
gazelle(
name = "gazelle",
env = {
"ENABLE_LANGUAGES": ",".join([
"argocd",
"wrangler",
"semgrep",
"bzl",
"proto",
"go",
"python",
]),
},
gazelle = ":gazelle_binary",
visibility = ["//bazel/tools/format:__pkg__"],
)
exports_files(
["pyproject.toml"],
visibility = ["//:__subpackages__"],
)
# Produce aspect_rules_py targets rather than rules_python
# gazelle:map_kind py_binary py_venv_binary @aspect_rules_py//py/private/py_venv:defs.bzl
# gazelle:map_kind py_library py_library @aspect_rules_py//py:defs.bzl
# gazelle:map_kind py_test py_test //bazel/tools/pytest:defs.bzl
#
# Don't walk into virtualenvs when looking for python sources.
# We don't intend to plant BUILD files there.
# gazelle:exclude **/*.venv
#
# gazelle:python_manifest_file_name bazel/tools/python/gazelle_python.yaml
#
# Python gazelle configuration moved to //bazel/tools/python to avoid eager-fetching
# all pip packages during CI analysis phase. Use:
# - bazel run //bazel/tools/python:gazelle_python_manifest.update
# - bazel test //bazel/tools/python:gazelle_python_manifest.test