Skip to content

Commit

Permalink
tune pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
ptichoid committed Jun 4, 2024
1 parent ca96529 commit 0f01da9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions last_commit_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,22 @@ def main(gorg, table_name, rtc, gh_str, token):


if __name__ == "__main__":
gh_org_str = "opentelekomcloud-docs"
commit_table = "last_update_commit"
rtc_table = "repo_title_category"
GH_ORG_STR = "opentelekomcloud-docs"
COMMIT_TABLE = "last_update_commit"
RTC_TABLE = "repo_title_category"

done = False
DONE = False
try:
main(gh_org_str, commit_table, rtc_table, gh_org_str, github_token)
main(f"{gh_org_str}-swiss", f"{commit_table}_swiss", f"{rtc_table}_swiss", f"{gh_org_str}-swiss", github_token)
done = True
main(GH_ORG_STR, COMMIT_TABLE, RTC_TABLE, GH_ORG_STR, github_token)
main(f"{GH_ORG_STR}-swiss", f"{COMMIT_TABLE}_swiss", f"{RTC_TABLE}_swiss", f"{GH_ORG_STR}-swiss", github_token)
DONE = True
except Exception as e:
logging.info(f"Error has been occurred: {e}")
main(gh_org_str, commit_table, rtc_table, gh_org_str, github_fallback_token)
main(f"{gh_org_str}-swiss", f"{commit_table}_swiss", f"{rtc_table}_swiss", f"{gh_org_str}-swiss",
main(GH_ORG_STR, COMMIT_TABLE, RTC_TABLE, GH_ORG_STR, github_fallback_token)
main(f"{GH_ORG_STR}-swiss", f"{COMMIT_TABLE}_swiss", f"{RTC_TABLE}_swiss", f"{GH_ORG_STR}-swiss",
github_fallback_token)
done = True
if done:
DONE = True
if DONE:
logging.info("Github operations successfully done!")

end_time = time.time()
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ deps =
isort
commands =
flake8 . --max-line-length=120
pylint --max-line-length=120 --fail-under=8 *.py
pylint --max-line-length=120 --disable=W0621,C0116 --fail-under=8 *.py
mypy .
isort . --check-only --line-length 120

0 comments on commit 0f01da9

Please sign in to comment.