diff options
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> | 2020-12-30 11:56:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 11:56:09 +0200 |
commit | ee03e31831900c3a7aba9f94a9693a833a3ab9de (patch) | |
tree | 431d7984ce45526a5403316fddafac12171cd25c /scripts/prepare-release-pr.py | |
parent | 77519048753f629847d3edaf8344753ad6689ada (diff) | |
download | pytest-ee03e31831900c3a7aba9f94a9693a833a3ab9de.tar.gz |
[pre-commit.ci] pre-commit autoupdate (#8201)
* [pre-commit.ci] pre-commit autoupdate
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* manual fixes after configuration update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Diffstat (limited to 'scripts/prepare-release-pr.py')
-rw-r--r-- | scripts/prepare-release-pr.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/prepare-release-pr.py b/scripts/prepare-release-pr.py index 538a5af5a..296de46ea 100644 --- a/scripts/prepare-release-pr.py +++ b/scripts/prepare-release-pr.py @@ -90,7 +90,10 @@ def prepare_release_pr(base_branch: str, is_major: bool, token: str) -> None: cmdline = ["tox", "-e", "release", "--", version, "--skip-check-links"] print("Running", " ".join(cmdline)) run( - cmdline, text=True, check=True, capture_output=True, + cmdline, + text=True, + check=True, + capture_output=True, ) oauth_url = f"https://{token}:x-oauth-basic@github.com/{SLUG}.git" @@ -105,7 +108,10 @@ def prepare_release_pr(base_branch: str, is_major: bool, token: str) -> None: body = PR_BODY.format(version=version) repo = login(token) pr = repo.create_pull( - f"Prepare release {version}", base=base_branch, head=release_branch, body=body, + f"Prepare release {version}", + base=base_branch, + head=release_branch, + body=body, ) print(f"Pull request {Fore.CYAN}{pr.url}{Fore.RESET} created.") |