From d4a9bf3c74862ee6a04f112b06f89748902ab726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 17 Oct 2023 15:27:46 +0200 Subject: [PATCH] Return exit status in __main__.py (#3157) Co-authored-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> --- codespell_lib/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codespell_lib/__main__.py b/codespell_lib/__main__.py index bbadb84c5b..ecc82e092b 100644 --- a/codespell_lib/__main__.py +++ b/codespell_lib/__main__.py @@ -1,4 +1,6 @@ +import sys + from ._codespell import _script_main if __name__ == "__main__": - _script_main() + sys.exit(_script_main())