From edf4c54811fae40d60ca128c1ebe694cbad4b960 Mon Sep 17 00:00:00 2001 From: PLPeeters Date: Fri, 29 Aug 2025 12:44:18 +0200 Subject: [PATCH] Return nonzero exit code when issues are found Fixes #20, #35 --- deadcode/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deadcode/cli.py b/deadcode/cli.py index 4b4f54e..c3549e2 100644 --- a/deadcode/cli.py +++ b/deadcode/cli.py @@ -40,6 +40,7 @@ def main( def print_main() -> None: if result := main(): print(result) + sys.exit(1) if __name__ == '__main__':