From 57a7433354b2229b7e8b29115424926ec6e62d78 Mon Sep 17 00:00:00 2001 From: wwakabobik Date: Mon, 25 Sep 2023 17:19:45 +0200 Subject: [PATCH] PEP8 fixes + BLACK --- .github/workflows/linters.yml | 2 +- testrail_api_reporter/engines/results_reporter.py | 4 +--- testrail_api_reporter/utils/reporter_utils.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 8e314fb..65ce3d1 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -52,7 +52,7 @@ jobs: changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true echo $changed_files if [ -n "$changed_files" ]; then - PYTHONPATH=. mypy $changed_files + PYTHONPATH=. mypy $changed_files --install-types --non-interactive else echo "No files changed, passing by" exit 0 diff --git a/testrail_api_reporter/engines/results_reporter.py b/testrail_api_reporter/engines/results_reporter.py index 6dfa72e..63e2b0b 100644 --- a/testrail_api_reporter/engines/results_reporter.py +++ b/testrail_api_reporter/engines/results_reporter.py @@ -207,9 +207,7 @@ def ___handle_read_timeout(retry, retries, debug, error): if debug: print(f"Timeout error, retrying {retry}/{retries}...") return retry, True - raise ValueError( - f"Get cases failed. Please validate your settings!nError{format_error(error)}" - ) from error + raise ValueError(f"Get cases failed. Please validate your settings!nError{format_error(error)}") from error # pylint: disable=R0912 def __get_all_auto_cases(self, retries=3, debug=None): diff --git a/testrail_api_reporter/utils/reporter_utils.py b/testrail_api_reporter/utils/reporter_utils.py index b82f1fa..782109b 100644 --- a/testrail_api_reporter/utils/reporter_utils.py +++ b/testrail_api_reporter/utils/reporter_utils.py @@ -106,4 +106,4 @@ def init_get_cases_process(debug, default_debug): criteria = None response = None retry = 0 - return debug, cases_list, first_run, criteria, response, retry \ No newline at end of file + return debug, cases_list, first_run, criteria, response, retry