From 67e190dbe27a8b37301523e4dda6b5854f70fd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 17 Oct 2023 13:59:16 +0200 Subject: [PATCH 1/3] Return exit status in __main__.py --- codespell_lib/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codespell_lib/__main__.py b/codespell_lib/__main__.py index bbadb84c5b..23a0040aca 100644 --- a/codespell_lib/__main__.py +++ b/codespell_lib/__main__.py @@ -1,4 +1,4 @@ from ._codespell import _script_main if __name__ == "__main__": - _script_main() + sys.exit(_script_main()) From 67bb094e4c704d29762524c08550e3ab75fe84f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 17 Oct 2023 14:00:50 +0200 Subject: [PATCH 2/3] Update __main__.py --- codespell_lib/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/codespell_lib/__main__.py b/codespell_lib/__main__.py index 23a0040aca..927f061e5e 100644 --- a/codespell_lib/__main__.py +++ b/codespell_lib/__main__.py @@ -1,4 +1,5 @@ from ._codespell import _script_main +import sys if __name__ == "__main__": sys.exit(_script_main()) From 7965b45c6629320adaaee84b293ea227e1a6e5a2 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:23:01 +0200 Subject: [PATCH 3/3] Run isort --- codespell_lib/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codespell_lib/__main__.py b/codespell_lib/__main__.py index 927f061e5e..ecc82e092b 100644 --- a/codespell_lib/__main__.py +++ b/codespell_lib/__main__.py @@ -1,5 +1,6 @@ -from ._codespell import _script_main import sys +from ._codespell import _script_main + if __name__ == "__main__": sys.exit(_script_main())