@@ -68,26 +68,26 @@ include = [
68
68
exclude = [" temporalio/bridge/**/target" ]
69
69
70
70
[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"
77
77
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" },
80
80
{ref = " lint-types" },
81
- {cmd = " pyright" },
81
+ {cmd = " uv run pyright" },
82
82
{ref = " lint-docs" },
83
83
]
84
84
bridge-lint = { cmd = " cargo clippy -- -D warnings" , cwd = " temporalio/bridge" }
85
85
# TODO(cretz): Why does pydocstyle complain about @overload missing docs after
86
86
# 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"
91
91
92
92
# Install local, run single pytest with env var, uninstall local
93
93
[tool .poe .tasks .test-dist-single ]
@@ -97,14 +97,14 @@ ignore_fail = "return_non_zero"
97
97
# there's a comma (see https://github.com/uiri/toml/issues/348).
98
98
99
99
[[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"
101
101
102
102
[[tool .poe .tasks .test-dist-single .sequence ]]
103
- cmd = " pytest -k test_activity_hello"
103
+ cmd = " uv run pytest -k test_activity_hello"
104
104
env = { TEMPORAL_INTEGRATION_TEST = " 1" }
105
105
106
106
[[tool .poe .tasks .test-dist-single .sequence ]]
107
- cmd = " pip uninstall temporalio -y"
107
+ cmd = " uv pip uninstall temporalio -y"
108
108
109
109
[tool .pytest .ini_options ]
110
110
asyncio_mode = " auto"
0 commit comments