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