You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All tests should be run. This issue appears to stem from the cookiecutter app temple v2.4.0 which introduces exit codes to the ruff() test.
The ruff function has the line raise Exit(code=exit_code), which raises an Exit exception with the exit_code after ruff runs. This stops the invoke tests execution immediately, regardless of whether ruff succeeds or fails.
invoke tests calls ruff(context), which then raises Exit upon completion, causing the script to exit immediately after ruff runs, without moving on to the subsequent steps.
Steps to Reproduce
Run invoke tests for an app that has been rebaked using cookiecutter app template v2.4.0
The text was updated successfully, but these errors were encountered:
DistantVoyager
changed the title
ruff Exit Exception Stopping invoke tests Execution
Exit Exceptions Stopping invoke tests Execution
Nov 4, 2024
This is also happening in the same way with the pylint test.
When skipping the ruff test to allow invoke tests to continue, execution also stops even on a successful pylint run presumably due to the same exit exception code also in the pylint() method.
Environment
Observed Behavior
invoke tests
seems to be exiting immediately after theruff
test, even though theruff
test is passing.Expected Behavior
All tests should be run. This issue appears to stem from the cookiecutter app temple v2.4.0 which introduces exit codes to the
ruff()
test.The ruff function has the line
raise Exit(code=exit_code)
, which raises an Exit exception with the exit_code afterruff
runs. This stops theinvoke tests
execution immediately, regardless of whetherruff
succeeds or fails.invoke tests
callsruff(context)
, which then raises Exit upon completion, causing the script to exit immediately after ruff runs, without moving on to the subsequent steps.Steps to Reproduce
invoke tests
for an app that has been rebaked using cookiecutter app template v2.4.0The text was updated successfully, but these errors were encountered: