Open chrisjsewell opened 2 months ago
Another use case is running coverage report after tests, regardless of whether they pass or fail. We could also name this new option is keep_going
, in line with what PDM uses. Reference: https://pdm-project.org/latest/usage/scripts/#composite
[tool.rye.scripts]
"tests:coverage" = "coverage run -m unittest discover tests"
"tests:report" = "coverage report"
"tests" = { chain = ["tests:coverage", "tests:report"], keep_going = true }
Currently for https://rye.astral.sh/guide/pyproject/#chain
But it would be good if there was an option to make it work similar to how
rye test -a
works:This would be useful for running multiple checks and also, for my use case, to run mypy against each package in a monorepo (since unfortunately at present it does not support monorepos), e.g.