From d063fb481bc6384c3949e83980719a67e3546b4e Mon Sep 17 00:00:00 2001 From: Jonathan Striebel Date: Fri, 11 Jun 2021 23:50:17 +0200 Subject: [PATCH 1/2] call main when executed as python -m dunamai --- dunamai/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dunamai/__main__.py b/dunamai/__main__.py index 255527c..7b0a75a 100644 --- a/dunamai/__main__.py +++ b/dunamai/__main__.py @@ -246,3 +246,6 @@ def main() -> None: except Exception as e: print(e, file=sys.stderr) sys.exit(1) + +if __name__ == "__main__": + main() From 2ecaa01f968a9fc0f4d03e20f177cb26455ce9db Mon Sep 17 00:00:00 2001 From: Matthew Kennerly Date: Fri, 11 Jun 2021 20:07:05 -0400 Subject: [PATCH 2/2] Resolve whitespace issue for pre-commit hooks --- dunamai/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dunamai/__main__.py b/dunamai/__main__.py index 7b0a75a..f2e066a 100644 --- a/dunamai/__main__.py +++ b/dunamai/__main__.py @@ -247,5 +247,6 @@ def main() -> None: print(e, file=sys.stderr) sys.exit(1) + if __name__ == "__main__": main()