Skip to content

Commit fda82b0

Browse files
authored
chore: update to latest buildifier (#3386)
Upgrade to the latest buildifier and fix an example.
1 parent 3241428 commit fda82b0

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

.bazelci/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
buildifier:
1717
# keep these arguments in sync with .pre-commit-config.yaml
1818
# Use a specific version to avoid skew issues when new versions are released.
19-
version: 6.1.0
19+
version: 8.2.1
2020
warnings: "all"
2121
# NOTE: Minimum supported version is 7.x
2222
.minimum_supported_version: &minimum_supported_version

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
hooks:
2222
- id: check-merge-conflict
2323
- repo: https://github.com/keith/pre-commit-buildifier
24-
rev: 6.1.0
24+
rev: 8.2.1
2525
hooks:
2626
- id: buildifier
2727
args: &args

examples/multi_python_versions/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ use_repo(
3535

3636
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
3737
use_repo(pip, "pypi")
38+
3839
pip.parse(
3940
hub_name = "pypi",
4041
python_version = "3.9",

examples/pip_parse_vendored/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
33
load("@bazel_skylib//rules:write_file.bzl", "write_file")
44
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
55
load("@rules_python//python:py_test.bzl", "py_test")
6+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
67
load("//:requirements.bzl", "all_data_requirements", "all_requirements", "all_whl_requirements", "requirement")
78

89
# This rule adds a convenient way to update the requirements.txt

examples/pip_parse_vendored/WORKSPACE

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,19 @@ pip_parse(
3939
load("//:requirements.bzl", "install_deps")
4040

4141
install_deps()
42+
43+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44+
45+
# See https://github.com/bazelbuild/rules_shell/releases/tag/v0.2.0
46+
http_archive(
47+
name = "rules_shell",
48+
sha256 = "410e8ff32e018b9efd2743507e7595c26e2628567c42224411ff533b57d27c28",
49+
strip_prefix = "rules_shell-0.2.0",
50+
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.2.0/rules_shell-v0.2.0.tar.gz",
51+
)
52+
53+
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains")
54+
55+
rules_shell_dependencies()
56+
57+
rules_shell_toolchains()

0 commit comments

Comments
 (0)