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"