rye
rye copied to clipboard
"fail_fast=false" for scripts chain
Currently for https://rye.astral.sh/guide/pyproject/#chain
If any of the commands fails, the rest of the commands won't be executed and the chain fails.
But it would be good if there was an option to make it work similar to how rye test -a
works:
If any of the commands fails, the rest of the commands WIILL stil be executed but the chain fails.
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.
[tool.rye.scripts]
"mypy:package_a" = "mypy --config-file python/package_a/pyproject.toml python/package_a/src"
"mypy:package_b" = "mypy --config-file python/package_b/pyproject.toml python/package_b/src"
"mypy:all" = { chain = ["mypy:package_a", "mypy:package_b"], fail_fast = false }