Using pyproject-runner in CI, I'd like to capture the output of commands that don't natively support output to a file (specifically pyright). Normally, this would be a shell redirect (i.e. pyright --outputjson > pyright-output.json) but pyproject-runner doesn't support shell redirection syntax for obvious reasons. This could be handled within pyproject-runner by saving the output to a file as a configuration option. Other tools output an exit code and dealing with those would also be useful (e.g. ruff format --check).
Using
pyproject-runnerin CI, I'd like to capture the output of commands that don't natively support output to a file (specificallypyright). Normally, this would be a shell redirect (i.e.pyright --outputjson > pyright-output.json) butpyproject-runnerdoesn't support shell redirection syntax for obvious reasons. This could be handled withinpyproject-runnerby saving the output to a file as a configuration option. Other tools output an exit code and dealing with those would also be useful (e.g.ruff format --check).