Poe the task runner
TODO
Previously: 250527-1937 taskfile go-task bits
Poe the Poet. Previously I used 250527-1937 taskfile go-task bits for something similar.
Poe the Poet is a batteries included task runner that works well with poetry or with uv.
Tasks defined in pyproject.toml. Especially neat are (Python) script tasks that allow you to run any importable thingy from your code. 1
Playing with it, current pytest.ini (rel: 260827-2259 Complexipy for code complexity)
[tool.poe.tasks]
test = "pytest"
test-now = "pytest -m now --pdb"
check-complexity = "uv run complexipy src --failed --suggest-refactors --max-complexity 15"
ty = "uv run ty check src --output-format concise"
fty = "uv run ty check src --output-format concise --fix"
ruff = "uv run ruff check src"
fruff = "uv run ruff check src --fix"
fruff-unsafe = "uv run ruff check src --fix --unsafe-fixes"
black = "uv run black src --check"
fblack = "uv run black src"
-
(Is this better than adding usual pyproject.toml uv script endpoints? It supports using inputs from other scripts but if you end up doing that you probably may need a real scripting language) ↩︎
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus