From c9a07bf545db7d44a9796720dd438417f0af1de6 Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Fri, 13 May 2022 15:16:28 +0100 Subject: [PATCH 1/3] terrabutler: Add exit imports --- terrabutler/__main__.py | 4 ++-- terrabutler/click.py | 1 + terrabutler/env.py | 1 + terrabutler/inception.py | 1 + terrabutler/requirements.py | 2 ++ terrabutler/tf.py | 1 + 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/terrabutler/__main__.py b/terrabutler/__main__.py index f595905..c939b16 100644 --- a/terrabutler/__main__.py +++ b/terrabutler/__main__.py @@ -1,5 +1,5 @@ -import sys +from sys import exit from terrabutler.click import main if __name__ == "__main__": - sys.exit(main()) + exit(main()) diff --git a/terrabutler/click.py b/terrabutler/click.py index 92e2e1d..17ad9eb 100755 --- a/terrabutler/click.py +++ b/terrabutler/click.py @@ -6,6 +6,7 @@ import click from colorama import Fore +from sys import exit from os import path from terrabutler.__init__ import ( __name__, diff --git a/terrabutler/env.py b/terrabutler/env.py index c26b0d6..72936c2 100644 --- a/terrabutler/env.py +++ b/terrabutler/env.py @@ -3,6 +3,7 @@ from terrabutler.utils import paths from click import confirm from colorama import Fore +from sys import exit import boto3 import os import subprocess diff --git a/terrabutler/inception.py b/terrabutler/inception.py index 59de398..2555296 100644 --- a/terrabutler/inception.py +++ b/terrabutler/inception.py @@ -1,6 +1,7 @@ from terrabutler.utils import paths from colorama import Fore from os import path +from sys import exit import subprocess diff --git a/terrabutler/requirements.py b/terrabutler/requirements.py index 99f449b..94c050f 100644 --- a/terrabutler/requirements.py +++ b/terrabutler/requirements.py @@ -1,3 +1,5 @@ +from sys import exit + def check_requirements(): """ Check requirements before running the application. diff --git a/terrabutler/tf.py b/terrabutler/tf.py index 8b86562..46014d4 100644 --- a/terrabutler/tf.py +++ b/terrabutler/tf.py @@ -2,6 +2,7 @@ import signal import subprocess from colorama import Fore +from sys import exit from terrabutler.settings import get_settings from terrabutler.utils import paths From e11d10bd5946782a135b03c4b7ea90546147f878 Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Fri, 13 May 2022 15:19:39 +0100 Subject: [PATCH 2/3] terrabutler: env.py: Fix E271 --- terrabutler/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terrabutler/env.py b/terrabutler/env.py index 72936c2..a301962 100644 --- a/terrabutler/env.py +++ b/terrabutler/env.py @@ -3,7 +3,7 @@ from terrabutler.utils import paths from click import confirm from colorama import Fore -from sys import exit +from sys import exit import boto3 import os import subprocess From eb51a0429eac5e36cb699cc94e0f792140287b9d Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Fri, 13 May 2022 15:20:03 +0100 Subject: [PATCH 3/3] terrabutler: requirements: Fix E302 --- terrabutler/requirements.py | 1 + 1 file changed, 1 insertion(+) diff --git a/terrabutler/requirements.py b/terrabutler/requirements.py index 94c050f..b2dab14 100644 --- a/terrabutler/requirements.py +++ b/terrabutler/requirements.py @@ -1,5 +1,6 @@ from sys import exit + def check_requirements(): """ Check requirements before running the application.