📝

uvでタスクランナーなpoe(poethepoet)を使う

に公開

uvでnpm run <task-name>みたいなことをする。

uv add --dev poethepoetしてpyproject.tomlを次のように書きます。

pyproject.toml

...
[tool.poe.tasks]
hello = "echo 'hello, poe!'"

タスクを走らせます。

$poe hello
Poe => echo 'hello, poe!'
hello, poe!

参考:
https://github.com/astral-sh/uv/issues/5903#issuecomment-2802089030
https://github.com/nat-n/poethepoet

Discussion