Skip to content

Commit

Permalink
PEP8 fixes + BLACK
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Sep 25, 2023
1 parent a0fbee5 commit 57a7433
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions testrail_api_reporter/engines/results_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion testrail_api_reporter/utils/reporter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
return debug, cases_list, first_run, criteria, response, retry

0 comments on commit 57a7433

Please sign in to comment.