update buildifier and fix formatting

This commit is contained in:
Derek Cormier 2022-04-01 10:49:16 -07:00
parent 9ef738909b
commit 955e37bf74
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ default_stages: [commit]
repos:
# Check formatting and lint for starlark code
- repo: https://github.com/keith/pre-commit-buildifier
rev: 5.0.0
rev: 5.0.1
hooks:
- id: buildifier
- id: buildifier-lint

View File

@ -1,5 +1,6 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("//lib:write_source_files.bzl", "write_source_files")
gazelle_binary(
name = "gazelle_bin",
@ -22,13 +23,13 @@ bzl_library(
)
# write_source_files() to a git ignored subdirectory of the root
load("//lib:write_source_files.bzl", "write_source_files")
genrule(
name = "write_source_file_root",
outs = ["write_source_file-root_directory"],
cmd = "mkdir -p $@ && echo 'test' > $@/test.txt",
visibility = ["//visibility:private"],
)
write_source_files(
name = "write_source_file_root-test",
diff_test = False,