Skip to content

Commit 220b41c

Browse files
committed
Reorder attrs again to satisfy linter
1 parent 7ed1256 commit 220b41c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

python/pip.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ def _pip_import_impl(repository_ctx):
4343

4444
pip_import = repository_rule(
4545
attrs = {
46+
"python_interpreter": attr.string(default = "python", doc = """
47+
The command to run the Python interpreter used to invoke pip and unpack the
48+
wheels.
49+
"""),
4650
"requirements": attr.label(
4751
mandatory = True,
4852
allow_single_file = True,
4953
doc = "The label of the requirements.txt file.",
5054
),
51-
"python_interpreter": attr.string(default = "python", doc = """
52-
The command to run the Python interpreter used to invoke pip and unpack the
53-
wheels.
54-
"""),
5555
"_script": attr.label(
5656
executable = True,
5757
default = Label("//tools:piptool.par"),

python/whl.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ whl_library = repository_rule(
4040
"extras": attr.string_list(doc = """
4141
A subset of the "extras" available from this <code>.whl</code> for which
4242
<code>requirements</code> has the dependencies.
43+
"""),
44+
"python_interpreter": attr.string(default = "python", doc = """
45+
The command to run the Python interpreter used when unpacking the wheel.
4346
"""),
4447
"requirements": attr.string(doc = """
4548
The name of the <code>pip_import</code> repository rule from which to load this
@@ -53,9 +56,6 @@ The path to the <code>.whl</code> file. The name is expected to follow [this
5356
convention](https://www.python.org/dev/peps/pep-0427/#file-name-convention)).
5457
""",
5558
),
56-
"python_interpreter": attr.string(default = "python", doc = """
57-
The command to run the Python interpreter used when unpacking the wheel.
58-
"""),
5959
"_script": attr.label(
6060
executable = True,
6161
default = Label("//tools:whltool.par"),

0 commit comments

Comments
 (0)