Skip to content

Commit 071ff6f

Browse files
committed
Use uv for poe tasks
1 parent a478cfa commit 071ff6f

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

pyproject.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,26 @@ include = [
6868
exclude = ["temporalio/bridge/**/target"]
6969

7070
[tool.poe.tasks]
71-
build-develop = "python scripts/setup_bridge.py develop"
72-
build-develop-with-release = { cmd = "python scripts/setup_bridge.py develop", env = { TEMPORAL_BUILD_RELEASE = "1" }}
73-
fix-wheel = "python scripts/fix_wheel.py"
74-
format = [{cmd = "ruff check --select I --fix"}, {cmd = "ruff format"}, ]
75-
gen-docs = "python scripts/gen_docs.py"
76-
gen-protos = "python scripts/gen_protos.py"
71+
build-develop = "uv run python scripts/setup_bridge.py develop"
72+
build-develop-with-release = { cmd = "uv run python scripts/setup_bridge.py develop", env = { TEMPORAL_BUILD_RELEASE = "1" }}
73+
fix-wheel = "uv run python scripts/fix_wheel.py"
74+
format = [{cmd = "uv run ruff check --select I --fix"}, {cmd = "uv run ruff format"}, ]
75+
gen-docs = "uv run python scripts/gen_docs.py"
76+
gen-protos = "uv run python scripts/gen_protos.py"
7777
lint = [
78-
{cmd = "ruff check --select I"},
79-
{cmd = "ruff format --check"},
78+
{cmd = "uv run ruff check --select I"},
79+
{cmd = "uv run ruff format --check"},
8080
{ref = "lint-types"},
81-
{cmd = "pyright"},
81+
{cmd = "uv run pyright"},
8282
{ref = "lint-docs"},
8383
]
8484
bridge-lint = { cmd = "cargo clippy -- -D warnings", cwd = "temporalio/bridge" }
8585
# TODO(cretz): Why does pydocstyle complain about @overload missing docs after
8686
# https://github.com/PyCQA/pydocstyle/pull/511?
87-
lint-docs = "pydocstyle --ignore-decorators=overload"
88-
lint-types = "mypy --namespace-packages --check-untyped-defs ."
89-
run-bench = "python scripts/run_bench.py"
90-
test = "pytest"
87+
lint-docs = "uv run pydocstyle --ignore-decorators=overload"
88+
lint-types = "uv run mypy --namespace-packages --check-untyped-defs ."
89+
run-bench = "uv run python scripts/run_bench.py"
90+
test = "uv run pytest"
9191

9292
# Install local, run single pytest with env var, uninstall local
9393
[tool.poe.tasks.test-dist-single]
@@ -97,14 +97,14 @@ ignore_fail = "return_non_zero"
9797
# there's a comma (see https://github.com/uiri/toml/issues/348).
9898

9999
[[tool.poe.tasks.test-dist-single.sequence]]
100-
cmd = "pip install --no-index --find-links=./dist temporalio"
100+
cmd = "uv pip install --no-index --find-links=./dist temporalio"
101101

102102
[[tool.poe.tasks.test-dist-single.sequence]]
103-
cmd = "pytest -k test_activity_hello"
103+
cmd = "uv run pytest -k test_activity_hello"
104104
env = { TEMPORAL_INTEGRATION_TEST = "1" }
105105

106106
[[tool.poe.tasks.test-dist-single.sequence]]
107-
cmd = "pip uninstall temporalio -y"
107+
cmd = "uv pip uninstall temporalio -y"
108108

109109
[tool.pytest.ini_options]
110110
asyncio_mode = "auto"

scripts/gen_protos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def check_proto_toolchain_versions():
130130
so we just run pip and check there.
131131
"""
132132
proc = subprocess.run(
133-
["pip", "list", "--format", "freeze"],
133+
["uv", "pip", "list", "--format", "freeze"],
134134
check=True,
135135
capture_output=True,
136136
text=True,

0 commit comments

Comments
 (0)