From b0bc828cf46b2a50a0601fd7ba575780bd952e44 Mon Sep 17 00:00:00 2001 From: buguno Date: Wed, 9 Sep 2026 00:00:21 -0300 Subject: [PATCH] fix(pyproject): restructure poe tasks to avoid inline tables in arrays --- pyproject.toml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0ef1363..d073285 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,15 +67,21 @@ extend-exclude = ["*.md"] poetry_command = "" [tool.poe.tasks] -lint = { cmd = "ruff check" } -format.sequence = [ - { cmd = "ruff check --fix" }, - { cmd = "ruff format" }, -] +lint = "ruff check" serve = "fastapi dev app/main.py" -coverage = { cmd = "coverage html --show-contexts" } -test.sequence = [ - "lint", - { cmd = "pytest -s -x -vv $POE_EXTRA_ARGS" }, - "coverage", -] +coverage = "coverage html --show-contexts" + +[[tool.poe.tasks.format.sequence]] +cmd = "ruff check --fix" + +[[tool.poe.tasks.format.sequence]] +cmd = "ruff format" + +[[tool.poe.tasks.test.sequence]] +ref = "lint" + +[[tool.poe.tasks.test.sequence]] +cmd = "pytest -s -x -vv $POE_EXTRA_ARGS" + +[[tool.poe.tasks.test.sequence]] +ref = "coverage"