mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Add BUCK filename to Python in languages.yml
BUCK is the filename for the build files of the Facebook Buck build system. BUCK files are valid Python files. Eg.: https://github.com/GerritCodeReview/gerrit/blob/master/BUCK Also add a missing sample for Pants / Bazel BUILD files. They are also valid Python files.
This commit is contained in:
45
samples/Python/filenames/BUILD
Normal file
45
samples/Python/filenames/BUILD
Normal file
@@ -0,0 +1,45 @@
|
||||
package(default_visibility = ["//scripts/release:__pkg__"])
|
||||
|
||||
filegroup(
|
||||
name = "git",
|
||||
srcs = glob([".git/**"]),
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "dummy",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = glob(
|
||||
["**"],
|
||||
exclude = [
|
||||
"bazel-*/**",
|
||||
"output/**",
|
||||
".*/**",
|
||||
],
|
||||
) + [
|
||||
"//examples:srcs",
|
||||
"//scripts:srcs",
|
||||
"//site:srcs",
|
||||
"//src:srcs",
|
||||
"//tools:srcs",
|
||||
"//third_party:srcs",
|
||||
],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
load("//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
||||
|
||||
pkg_tar(
|
||||
name = "bazel-srcs",
|
||||
files = [":srcs"],
|
||||
strip_prefix = ".",
|
||||
# Public but bazel-only visibility.
|
||||
visibility = ["//:__subpackages__"],
|
||||
)
|
||||
|
||||
load("//tools/build_rules/go:def.bzl", "go_prefix")
|
||||
|
||||
go_prefix("github.com/bazelbuild/bazel")
|
||||
Reference in New Issue
Block a user