From f282f86e72dead74b416903f1f7804cb4d016ca4 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 13 Jun 2025 05:46:30 +0100 Subject: [PATCH] make test a composite command so we can avoid failing fast --- pyproject.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 780f3d0..a271b1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,12 +28,13 @@ _.env_file = ".env" cli.cmd = "slobs-cli {args}" -pre_test.cmd = "python tests/setup.py" -test.cmd = "pytest {args}" -post_test.cmd = "python tests/teardown.py" +_setup.cmd = "python tests/setup.py" +_teardown.cmd = "python tests/teardown.py" +test.composite = ["_setup", "pytest {args}", "_teardown"] +test.keep_going = true fmt.cmd = "ruff format {args}" -lint.cmd = "ruff check {args}" +post_fmt.cmd = "ruff check {args}" [dependency-groups] dev = [