Skip to content

Commit

Permalink
Fix formatting in yapf bzl file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Feb 10, 2020
1 parent a0ceeff commit b40e71e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/rt/yapf/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def _yapf_test_impl(ctx):
ctx.attr._yapf[DefaultInfo].files_to_run.executable.short_path,
)

run_srcs = [paths.join("${BUILD_WORKSPACE_DIRECTORY}",
f.short_path) for f in ctx.files.srcs]
run_srcs = [paths.join(
"${BUILD_WORKSPACE_DIRECTORY}",
f.short_path,
) for f in ctx.files.srcs]

test_srcs = [shell.quote(f.short_path) for f in ctx.files.srcs]

Expand Down Expand Up @@ -72,11 +74,11 @@ _PY_YAPF_TEST_ATTRS = {
"`style`).",
),
"parallel": attr.bool(
doc = "Run yapf in parallel when formatting multiple files",
doc = "Run yapf in parallel when formatting multiple files",
),
"style": attr.string(
doc = "The style name (mutually exclusive with `config`)",
values = ["", "chromium", "facebook", "google", "pep8"],
values = ["", "chromium", "facebook", "google", "pep8"],
),
"verbose": attr.bool(doc = "Print out file names while processing"),
"_template": attr.label(
Expand Down

0 comments on commit b40e71e

Please sign in to comment.