Skip to content

Commit

Permalink
Fixed invoke tests exiting early even when tests pass. (#54)
Browse files Browse the repository at this point in the history
* Fixed `invoke tests` exiting early even when tests pass.

* changelog
  • Loading branch information
gsnider2195 authored Oct 18, 2024
1 parent 1c7e796 commit 2077a99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/54.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed `invoke tests` exiting early even when tests pass.
6 changes: 4 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,8 @@ def pylint(context):
else:
print("No migrations directory found, skipping migrations checks.")

raise Exit(code=exit_code)
if exit_code != 0:
raise Exit(code=exit_code)


@task(aliases=("a",))
Expand Down Expand Up @@ -775,7 +776,8 @@ def ruff(context, action=None, target=None, fix=False, output_format="concise"):
if not run_command(context, command, warn=True):
exit_code = 1

raise Exit(code=exit_code)
if exit_code != 0:
raise Exit(code=exit_code)


@task
Expand Down

0 comments on commit 2077a99

Please sign in to comment.