Skip to content

Commit 87054ba

Browse files
committed
revert non-zero
1 parent 78cb54f commit 87054ba

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

python/ruff-ecosystem/ruff_ecosystem/cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,10 @@ def entrypoint():
105105
for signal in [SIGINT, SIGTERM]:
106106
loop.add_signal_handler(signal, main_task.cancel)
107107
try:
108-
had_errors = loop.run_until_complete(main_task)
108+
loop.run_until_complete(main_task)
109109
finally:
110110
loop.close()
111111

112-
if had_errors:
113-
exit(1)
114-
115112

116113
def parse_args() -> argparse.Namespace:
117114
parser = argparse.ArgumentParser(

python/ruff-ecosystem/ruff_ecosystem/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def main(
3737
format_comparison: FormatComparison | None,
3838
max_parallelism: int = 50,
3939
raise_on_failure: bool = False,
40-
) -> bool:
40+
) -> None:
4141
logger.debug("Using command %s", command.value)
4242
logger.debug("Using baseline executable at %s", baseline_executable)
4343
logger.debug("Using comparison executable at %s", comparison_executable)
@@ -96,7 +96,7 @@ async def limited_parallelism(coroutine: Awaitable[T]) -> T:
9696
case _:
9797
raise ValueError(f"Unknown output format {format}")
9898

99-
return bool(result.errored)
99+
return None
100100

101101

102102
async def clone_and_compare(

0 commit comments

Comments
 (0)