-
Notifications
You must be signed in to change notification settings - Fork 238
/
Copy pathBUCK
56 lines (48 loc) · 919 Bytes
/
BUCK
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
load(
"@prelude-si//:macros.bzl",
"sh_binary",
"shellcheck",
"shfmt_check",
"test_suite",
"yapf_check",
)
sh_binary(
name = "update-prelude",
main = "buck2-update-prelude.sh",
)
python_bootstrap_binary(
name = "sync-cargo-deps",
main = "buck2-sync-cargo-deps.py",
visibility = ["PUBLIC"],
)
command_alias(
name = "check-cargo-deps",
exe = ":sync-cargo-deps",
args = ["--check"],
visibility = ["PUBLIC"],
)
shfmt_check(
name = "check-format-shell",
srcs = glob(["**/*.sh"]),
)
shellcheck(
name = "check-lint-shell",
srcs = glob(["**/*.sh"]),
)
yapf_check(
name = "check-format-python",
srcs = glob(["**/*.py"]),
)
test_suite(
name = "check-format",
tests = [
":check-format-shell",
":check-format-python",
],
)
test_suite(
name = "check-lint",
tests = [
":check-lint-shell",
],
)