load(
"@prelude-si//:macros.bzl",
"sh_binary",
"shellcheck",
"shfmt_check",
"test_suite",
"yapf_check",
)
sh_binary(
name = "update-prelude",
main = "buck2-update-prelude.sh",
)
sh_binary(
name = "all-rust-targets",
main = "buck2-all-rust-targets.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",
],
)