Skip to content

Commit 15c15bf

Browse files
committed
Apply buildifier
1 parent 7c2d659 commit 15c15bf

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

modules/core/internal/compile.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ def proto_compile(ctx, options, extra_protoc_args, extra_protoc_files):
9696
# Load attrs
9797
proto_infos = [dep[ProtoInfo] for dep in ctx.attr.protos]
9898
plugins = [
99-
plugin[ProtoPluginInfo] for plugin in ctx.attr._plugins
99+
plugin[ProtoPluginInfo]
100+
for plugin in ctx.attr._plugins
100101
] + [
101-
plugin[ProtoPluginInfo] for plugin in ctx.attr.extra_plugins
102+
plugin[ProtoPluginInfo]
103+
for plugin in ctx.attr.extra_plugins
102104
]
103105
verbose = ctx.attr.verbose
104106

modules/python/python_grpc_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ load("@rules_proto_grpc_python_pip_deps//:requirements.bzl", "requirement")
55
load("@rules_python//python:defs.bzl", "py_library")
66
load("//:python_grpc_compile.bzl", "python_grpc_compile")
77

8-
def python_grpc_library(name, generate_pyi=False, **kwargs):
8+
def python_grpc_library(name, generate_pyi = False, **kwargs):
99
"""
1010
python_grpc_library generates Python code from proto and gRPC, and creates a py_library for them.
1111

modules/python/python_grpclib_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ load("@rules_proto_grpc_python_pip_deps//:requirements.bzl", "requirement")
55
load("@rules_python//python:defs.bzl", "py_library")
66
load("//:python_grpclib_compile.bzl", "python_grpclib_compile")
77

8-
def python_grpclib_library(name, generate_pyi=False, **kwargs):
8+
def python_grpclib_library(name, generate_pyi = False, **kwargs):
99
# Compile protos
1010
name_pb = name + "_pb"
1111
python_grpclib_compile(

modules/python/python_proto_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ load("@rules_proto_grpc_python_pip_deps//:requirements.bzl", "requirement")
55
load("@rules_python//python:defs.bzl", "py_library")
66
load("//:python_proto_compile.bzl", "python_proto_compile")
77

8-
def python_proto_library(name, generate_pyi=False, **kwargs):
8+
def python_proto_library(name, generate_pyi = False, **kwargs):
99
"""
1010
python_proto_library generates Python code from proto and creates a py_library for them.
1111

test_workspaces/python_deps/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ proto_library(
1313

1414
python_grpc_library(
1515
name = "py_lib",
16-
protos = ["proto_lib"],
1716
generate_pyi = True,
17+
protos = ["proto_lib"],
1818
)
1919

2020
py_test(

tools/rulegen/python.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ load("@rules_proto_grpc_python_pip_deps//:requirements.bzl", "requirement")
55
load("@rules_python//python:defs.bzl", "py_library")
66
load("//:{{ .Lang.Name }}_{{ .Rule.Kind }}_compile.bzl", "{{ .Lang.Name }}_{{ .Rule.Kind }}_compile")
77
8-
def {{ .Rule.Name }}(name, generate_pyi=False, **kwargs):
8+
def {{ .Rule.Name }}(name, generate_pyi = False, **kwargs):
99
"""
1010
python_proto_library generates Python code from proto and creates a py_library for them.
1111
@@ -50,7 +50,7 @@ load("@rules_proto_grpc_python_pip_deps//:requirements.bzl", "requirement")
5050
load("@rules_python//python:defs.bzl", "py_library")
5151
load("//:{{ .Lang.Name }}_{{ .Rule.Kind }}_compile.bzl", "{{ .Lang.Name }}_{{ .Rule.Kind }}_compile")
5252
53-
def {{ .Rule.Name }}(name, generate_pyi=False, **kwargs):
53+
def {{ .Rule.Name }}(name, generate_pyi = False, **kwargs):
5454
"""
5555
python_grpc_library generates Python code from proto and gRPC, and creates a py_library for them.
5656
@@ -101,7 +101,7 @@ load("@rules_proto_grpc_python_pip_deps//:requirements.bzl", "requirement")
101101
load("@rules_python//python:defs.bzl", "py_library")
102102
load("//:{{ .Lang.Name }}_grpclib_compile.bzl", "{{ .Lang.Name }}_grpclib_compile")
103103
104-
def {{ .Rule.Name }}(name, generate_pyi=False, **kwargs):
104+
def {{ .Rule.Name }}(name, generate_pyi = False, **kwargs):
105105
# Compile protos
106106
name_pb = name + "_pb"
107107
python_grpclib_compile(

0 commit comments

Comments
 (0)