Skip to content

Commit 2ee7aed

Browse files
committed
Pre-commit changes
1 parent a02a226 commit 2ee7aed

File tree

11 files changed

+22
-24
lines changed

11 files changed

+22
-24
lines changed

BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
load("@gazelle//:def.bzl", "gazelle")
22
load("@rules_python//python/pip_install:requirements.bzl", "compile_pip_requirements")
3-
load("@rules_python_gazelle_plugin//manifest:defs.bzl", "gazelle_python_manifest")
4-
load("@rules_python_gazelle_plugin//modules_mapping:def.bzl", "modules_mapping")
53

64
# gazelle:exclude internal_python_deps.bzl
75
# gazelle:exclude internal_deps.bzl

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,18 +548,18 @@ uv.declare_venv(
548548
)
549549
uv.lockfile(
550550
hub_name = "pypi",
551-
venv_name = "default",
552551
lockfile = "//:uv.lock",
552+
venv_name = "default",
553553
)
554554
uv.declare_entrypoint(
555-
requirement = "pytest",
556555
name = "pytest",
557556
entrypoint = "pytest:console_main",
557+
requirement = "pytest",
558558
)
559559
uv.declare_entrypoint(
560-
requirement = "pytest",
561560
name = "py.test",
562561
entrypoint = "pytest:console_main",
562+
requirement = "pytest",
563563
)
564564
use_repo(uv, "pypi")
565565

bazel/include/python.MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ uv.declare_venv(
3232
)
3333
uv.lockfile(
3434
hub_name = "pypi",
35-
venv_name = "default",
3635
lockfile = "//:uv.lock",
36+
venv_name = "default",
3737
)
3838
uv.declare_entrypoint(
39-
requirement = "pytest",
4039
name = "pytest",
4140
entrypoint = "pytest:console_main",
41+
requirement = "pytest",
4242
)
4343
uv.declare_entrypoint(
44-
requirement = "pytest",
4544
name = "py.test",
4645
entrypoint = "pytest:console_main",
46+
requirement = "pytest",
4747
)
4848
use_repo(uv, "pypi")
4949

e2e/MODULE.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ uv.lockfile(
8585
)
8686
uv.override_requirement(
8787
hub_name = "pypi",
88-
venv_name = "default",
8988
requirement = "cowsay",
90-
target = "//cases/uv-deps-650/third_party/cowsay:cowsay",
89+
target = "//cases/uv-deps-650/third_party/cowsay",
90+
venv_name = "default",
9191
)
9292
uv.declare_venv(
9393
hub_name = "pypi",
@@ -107,5 +107,4 @@ uv.lockfile(
107107
lockfile = "//cases/uv-deps-650:uv-psql.lock",
108108
venv_name = "psql",
109109
)
110-
111110
use_repo(uv, "pypi")

e2e/cases/uv-deps-650/third_party/cowsay/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ load("@aspect_rules_py//py:defs.bzl", "py_library")
33
py_library(
44
name = "cowsay",
55
srcs = glob(["**/*.py"]),
6-
data = glob(["**/*"], exclude=["**/*.py"]),
6+
data = glob(
7+
["**/*"],
8+
exclude = ["**/*.py"],
9+
),
710
imports = ["."],
811
visibility = ["//visibility:public"],
912
)

py/tests/py-binary/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
load("@aspect_bazel_lib//lib:run_binary.bzl", "run_binary")
22
load("@aspect_bazel_lib//lib:testing.bzl", "assert_contains")
33
load("@pypi//:requirements.bzl", "requirement")
4-
load("//bazel:defs.bzl", "munge")
54
load("//py:defs.bzl", "py_binary", "py_test")
65

76
genrule(

uv/private/extension.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def _sbuild_repos(module_ctx, lock_specs, override_specs):
378378
"@" + _venv_target(hub_name, venv_name, package["name"])
379379
for package in package.get("build-dependencies", [
380380
{"name": "setuptools"},
381-
{"name": "build"}
381+
{"name": "build"},
382382
])
383383
],
384384
)
@@ -452,7 +452,7 @@ def _collect_entrypoints(module_ctx, lock_specs):
452452
res = module_ctx.execute(
453453
[
454454
"tar", # FIXME: Use a hermetic tar here somehow?
455-
"-xzOif",
455+
"-xzOf",
456456
file,
457457
"*.dist-info/entry_points.txt",
458458
],
@@ -711,6 +711,7 @@ def _uv_impl(module_ctx):
711711
lock_specs = _parse_locks(module_ctx, venv_specs)
712712

713713
override_specs = _parse_overrides(module_ctx, venv_specs)
714+
714715
# Roll through all the configured wheels, collect & validate the unique
715716
# platform configurations so that we can go create an appropriate power set
716717
# of conditions.

uv/private/hub/repository.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ load("@rules_python//python:pip.bzl", "pip_utils")
131131
def requirement(name):
132132
return "@@{repo_name}//{{0}}:{{0}}".format(pip_utils.normalize_name(name))
133133
""".format(
134-
repo_name = repository_ctx.name
135-
))
134+
repo_name = repository_ctx.name,
135+
))
136136
repository_ctx.file("requirements.bzl", content = "\n".join(content))
137-
137+
138138
################################################################################
139139
# Lay down the hub aliases
140140

uv/private/sdist_build/rule.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
Actually building sdists.
33
"""
44

5+
load("//py/private/py_venv:py_venv.bzl", "VirtualenvInfo")
6+
57
# buildifier: disable=bzl-visibility
68
load("//py/private/toolchain:types.bzl", "PY_TOOLCHAIN")
7-
load("//py/private/py_venv:py_venv.bzl", "VirtualenvInfo")
89

910
TAR_TOOLCHAIN = "@tar.bzl//tar/toolchain:type"
1011
# UV_TOOLCHAIN = "@multitool//tools/uv:toolchain_type"
@@ -90,7 +91,7 @@ specified Python dependencies under the configured Python toochain.
9091
attrs = {
9192
"src": attr.label(doc = ""),
9293
"venv": attr.label(doc = ""),
93-
"_helper": attr.label(allow_single_file = True, default = Label(":build_helper.py"))
94+
"_helper": attr.label(allow_single_file = True, default = Label(":build_helper.py")),
9495
},
9596
toolchains = [
9697
# TODO: Py toolchain needs to be in the `host` configuration, not the

uv/private/uv/defs.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)