Skip to content

Commit

Permalink
chore(deps): update dependency buildifier_prebuilt to v6 (#92)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency buildifier_prebuilt to v6

* Add buildifier test and fix issues to make it pass

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nikolaus Wittenstein <[email protected]>
  • Loading branch information
renovate[bot] and adzenith authored Feb 1, 2024
1 parent bc6b30d commit c016d55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ mypy_integration_deps("//:current_mypy_version.txt")

http_archive(
name = "buildifier_prebuilt",
sha256 = "c0c8a5e6caf9a99b037e77ed7a5f17615d50881d0d93de3e85c014705f7914fd",
strip_prefix = "buildifier-prebuilt-0.4.1",
sha256 = "8ada9d88e51ebf5a1fdff37d75ed41d51f5e677cdbeafb0a22dda54747d6e07e",
strip_prefix = "buildifier-prebuilt-6.4.0",
urls = [
"http://github.com/keith/buildifier-prebuilt/archive/0.4.1.tar.gz",
"http://github.com/keith/buildifier-prebuilt/archive/6.4.0.tar.gz",
],
)

Expand Down
4 changes: 2 additions & 2 deletions mypy.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"Public API"

load("@bazel_skylib//lib:shell.bzl", "shell")
load("@bazel_skylib//lib:sets.bzl", "sets")
load("@bazel_skylib//lib:shell.bzl", "shell")
load("//:rules.bzl", "MyPyStubsInfo")

MyPyAspectInfo = provider(
Expand All @@ -26,7 +26,7 @@ DEFAULT_ATTRS = {
"_mypy_cli": attr.label(
default = Label("//mypy"),
executable = True,
cfg = "host",
cfg = "exec",
),
"_mypy_config": attr.label(
default = Label("//:mypy_config"),
Expand Down
5 changes: 5 additions & 0 deletions test/shell/test_mypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ test_ok_for_package_roots_regression() {
action_should_succeed build --aspects //:mypy.bzl%mypy_aspect --output_groups=mypy //test/foo:foo
}

test_ok_buildifier() {
action_should_succeed run //tools/buildifier:buildifier.check
}

test_fails_on_broken_mypy_typings() {
action_should_fail build --aspects //:mypy.bzl%mypy_aspect --output_groups=mypy //test:broken_mypy_typings
}
Expand Down Expand Up @@ -70,6 +74,7 @@ main() {
$runner test_ok_on_valid_imported_mypy_test
$runner test_ok_on_valid_mypy_test
$runner test_ok_on_empty_py_library
$runner test_ok_buildifier

$runner test_fails_on_broken_imported_mypy_typings
$runner test_fails_on_broken_imported_mypy_test
Expand Down

0 comments on commit c016d55

Please sign in to comment.