Skip to content

Commit 682762d

Browse files
committed
lint
1 parent faa37b3 commit 682762d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

python/bin/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ filegroup(
99
_interpreter_binary(
1010
name = "python",
1111
binary = ":python_src",
12-
visibility = ["//visibility:public"],
1312
target_compatible_with = select({
1413
"@platforms//os:windows": ["@platforms//:incompatible"],
1514
"//conditions:default": [],
1615
}),
16+
visibility = ["//visibility:public"],
1717
)
1818

1919
# The user can modify this flag to source different interpreters for the

tests/interpreter/BUILD.bazel

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load(":interpreter_tests.bzl", "py_reconfig_interpreter_tests", "PYTHON_VERSIONS_TO_TEST")
15+
load(":interpreter_tests.bzl", "PYTHON_VERSIONS_TO_TEST", "py_reconfig_interpreter_tests")
1616

1717
py_reconfig_interpreter_tests(
1818
name = "interpreter_version_test",
19-
python_versions = PYTHON_VERSIONS_TO_TEST,
20-
# Both the interpreter and the test itself are expected to run under
21-
# the same version.
22-
expected_interpreter_version = None,
2319
srcs = ["interpreter_test.py"],
2420
data = [
2521
"//python/bin:python",
2622
],
2723
env = {
2824
"PYTHON_BIN": "$(rootpath //python/bin:python)",
2925
},
26+
# Both the interpreter and the test itself are expected to run under
27+
# the same version.
28+
expected_interpreter_version = None,
3029
main = "interpreter_test.py",
30+
python_versions = PYTHON_VERSIONS_TO_TEST,
3131
)
3232

3333
py_reconfig_interpreter_tests(
@@ -39,11 +39,11 @@ py_reconfig_interpreter_tests(
3939
env = {
4040
"PYTHON_BIN": "$(rootpath //python/bin:python)",
4141
},
42-
python_versions = PYTHON_VERSIONS_TO_TEST,
4342
# Since we're grabbing the interpreter from a binary with a fixed
4443
# version, we expect to always see that version. It doesn't matter what
4544
# Python version the test itself is running with.
4645
expected_interpreter_version = "3.11",
4746
main = "interpreter_test.py",
4847
python_src = "//tools/publish:twine",
48+
python_versions = PYTHON_VERSIONS_TO_TEST,
4949
)

tests/interpreter/interpreter_tests.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PYTHON_VERSIONS_TO_TEST = (
2020
"3.12",
2121
)
2222

23-
def py_reconfig_interpreter_tests(name, python_versions, expected_interpreter_version=None, env={}, **kwargs):
23+
def py_reconfig_interpreter_tests(name, python_versions, expected_interpreter_version = None, env = {}, **kwargs):
2424
for python_version in python_versions:
2525
py_reconfig_test(
2626
name = "{}_{}".format(name, python_version),

0 commit comments

Comments
 (0)