AICoE/Sefkhet-Abwy

View on GitHub

Showing 192 of 229 total issues

File utils.py has 300 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python3
# Sefkhet-Abwy
# Copyright(C) 2019,2020 Christoph Görn
#
# This program is free software: you can redistribute it and / or modify
Severity: Minor
Found in aicoe/sesheta/utils.py - About 3 hrs to fix

    Line too long (91 > 79 characters)
    Open

    _LOGGER.info("GitHub App from context in ping handler: %s", RUNTIME_CONTEXT.github_app)
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (105 > 79 characters)
    Open

    f"👌 Pull Request *{pull_request['title']}* has been *closed* with *unmerged commits*! 🚧",
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (80 > 79 characters)
    Open

    if pull_request["user"]["login"] not in ["sesheta", "khebhut[bot]"]:
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (107 > 79 characters)
    Open

    # Don't approve for the other users, until they explicitly ask for turning on this feature.
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (81 > 79 characters)
    Open

    ecosystem_name = security_advisory["vulnerabilities"]["package"]["ecosystem"]
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (161 > 79 characters)
    Open

    return f"⭐ In this Universe, based on relative position of planets and all the galaxies I picked {hangouts_userid(random.choice(_THOTH_INHABITANTS))} ⭐"
    Severity: Minor
    Found in aicoe/sesheta/actions/chat.py by pep8

    Line too long (103 > 79 characters)
    Open

    {"name": "human_intervention_required", "color": "f3ccff", "description": "to a human team mate!"},
    Severity: Minor
    Found in aicoe/sesheta/actions/label.py by pep8

    Line too long (101 > 79 characters)
    Open

    from aicoe.sesheta.actions.common import get_master_head_sha, get_pull_request, trigger_update_branch
    Severity: Minor
    Found in aicoe/sesheta/actions/pull_request.py by pep8

    Line too long (103 > 79 characters)
    Open

    if (gate_pass_status["context"] == "local/check") and (gate_pass_status["state"] == "success"):
    Severity: Minor
    Found in aicoe/sesheta/actions/pull_request.py by pep8

    Line too long (112 > 79 characters)
    Open

    @click.option("--github-endpoint", default="https://api.github.com", help="The GitHub API Endpoint to be used.")
    Severity: Minor
    Found in aicoe/sesheta/new_label_normalizer.py by pep8

    Line too long (86 > 79 characters)
    Open

    _LOGGER.debug(f"on_pull_request_review: working on PR {pull_request['html_url']}")
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (100 > 79 characters)
    Open

    notification_text = f"📗 '{realname(review['user']['login'])}' *approved* this Pull Request!"
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (92 > 79 characters)
    Open

    f"{realname(issue['user']['login'])} just opened an issue: *{issue['title']}*... 🚨 "
    Severity: Minor
    Found in aicoe/sesheta/review_manager.py by pep8

    Line too long (84 > 79 characters)
    Open

    codeowners_content = base64.b64decode(codeowners["content"]).decode("utf-8")
    Severity: Minor
    Found in aicoe/sesheta/actions/common.py by pep8

    Line too long (107 > 79 characters)
    Open

    _LOGGER.debug(f"rebasing Pull Request {pull_request} in {owner}/{repo} triggered: {triggered}")
    Severity: Minor
    Found in aicoe/sesheta/actions/common.py by pep8

    Line too long (108 > 79 characters)
    Open

    label = await github_api.getitem(f"/repos/{slug}/labels/{name}", preview_api_version="symmetra")
    Severity: Minor
    Found in aicoe/sesheta/actions/label.py by pep8

    Line too long (114 > 79 characters)
    Open

    # TODO if rebaseable is None, we need to come back in a few seconds, github has not finished a background task
    Severity: Minor
    Found in aicoe/sesheta/actions/pull_request.py by pep8

    Line too long (81 > 79 characters)
    Open

    f", head sha = {head_sha} and pull requests's base sha = {base_sha}",
    Severity: Minor
    Found in aicoe/sesheta/actions/pull_request.py by pep8

    Line too long (105 > 79 characters)
    Open

    _LOGGER.debug(f"removing pervious size label '{has_size_label}' from {pull_request['html_url']}")
    Severity: Minor
    Found in aicoe/sesheta/actions/pull_request.py by pep8
    Severity
    Category
    Status
    Source
    Language