Python: Simplify Python Poe tasks and unify package selectors (#4722)

* updated automation tasks and commands, with alias for the time being

* Restore aggregate test exclusions

Preserve the legacy all-tests scope for test --all by excluding lab and devui from the default aggregate sweep, while still allowing explicit package selection. Also ignore hidden/generated test directories such as .mypy_cache during aggregate discovery.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* updated versions in pre-commit

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Eduard van Valkenburg
2026-03-18 19:39:11 +01:00
committed by GitHub
Unverified
parent d3d0100822
commit f48c4512d3
60 changed files with 1704 additions and 527 deletions
+39 -10
View File
@@ -1,10 +1,39 @@
[tool.poe.tasks]
fmt = "ruff format"
format.ref = "fmt"
lint = "ruff check"
pyright = "pyright"
publish = "uv publish"
clean-dist = "rm -rf dist"
build-package = "uv build"
move-dist = "sh -c 'mkdir -p ../../dist && mv dist/* ../../dist/ 2>/dev/null || true'"
build = ["build-package", "move-dist"]
[tool.poe.tasks.syntax]
help = "Run Ruff formatting and Ruff checks for this package."
sequence = ["fmt", "lint"]
[tool.poe.tasks.fmt]
help = "DEPRECATED: Use `syntax --format` instead."
cmd = "ruff format"
[tool.poe.tasks.format]
help = "DEPRECATED: Use `syntax --format` instead."
ref = "fmt"
[tool.poe.tasks.lint]
help = "DEPRECATED: Use `syntax --check` instead."
cmd = "ruff check"
[tool.poe.tasks.pyright]
help = "Run Pyright for this package."
cmd = "pyright"
[tool.poe.tasks.publish]
help = "Publish this package with uv."
cmd = "uv publish"
[tool.poe.tasks.clean-dist]
help = "Remove generated dist artifacts for this package."
cmd = "rm -rf dist"
[tool.poe.tasks.build-package]
help = "Build distribution artifacts for this package."
cmd = "uv build"
[tool.poe.tasks.move-dist]
help = "Move built package artifacts into the workspace dist directory."
cmd = "sh -c 'mkdir -p ../../dist && mv dist/* ../../dist/ 2>/dev/null || true'"
[tool.poe.tasks.build]
help = "Build this package and move its artifacts into the workspace dist directory."
sequence = ["build-package", "move-dist"]