mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -49,7 +49,7 @@ github_repo = os.environ.get("GITHUB_REPOSITORY", "apache/superset")
|
||||
def request(
|
||||
method: Literal["GET", "POST", "DELETE", "PUT"], endpoint: str, **kwargs: Any
|
||||
) -> dict[str, Any]:
|
||||
resp = requests.request(
|
||||
resp = requests.request( # noqa: S113
|
||||
method,
|
||||
f"https://api.github.com/{endpoint.lstrip('/')}",
|
||||
headers={"Authorization": f"Bearer {github_token}"},
|
||||
@@ -152,7 +152,7 @@ Date: {date_str}
|
||||
help="Whether to also cancel running workflows.",
|
||||
)
|
||||
@click.argument("branch_or_pull", required=False)
|
||||
def cancel_github_workflows(
|
||||
def cancel_github_workflows( # noqa: C901
|
||||
branch_or_pull: Optional[str],
|
||||
repo: str,
|
||||
event: list[str],
|
||||
|
||||
Reference in New Issue
Block a user