Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 14, 2023
1 parent 49f7071 commit 91bd9c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
10 changes: 9 additions & 1 deletion jupyter_releaser/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,15 @@ def get_version_entry(


def build_entry(
ref, branch, repo, auth, changelog_path, since, since_last_stable, resolve_backports, silent=False
ref,
branch,
repo,
auth,
changelog_path,
since,
since_last_stable,
resolve_backports,
silent=False,
):
"""Build a python version entry"""
branch = branch or util.get_branch()
Expand Down
19 changes: 4 additions & 15 deletions jupyter_releaser/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,7 @@ def main(force):

silent_option: t.Any = [
click.option(
"--silent",
envvar="RH_SILENT",
default=False,
help="Set a placeholder in the changelog."
"--silent", envvar="RH_SILENT", default=False, help="Set a placeholder in the changelog."
)
]

Expand Down Expand Up @@ -397,15 +394,7 @@ def build_changelog(
):
"""Build changelog entry"""
changelog.build_entry(
ref,
branch,
repo,
auth,
changelog_path,
since,
since_last_stable,
resolve_backports,
silent
ref, branch, repo, auth, changelog_path, since, since_last_stable, resolve_backports, silent
)


Expand All @@ -431,7 +420,7 @@ def draft_changelog(
dry_run,
post_version_spec,
post_version_message,
silent
silent,
):
"""Create a changelog entry PR"""
lib.draft_changelog(
Expand All @@ -446,7 +435,7 @@ def draft_changelog(
dry_run,
post_version_spec,
post_version_message,
silent
silent,
)


Expand Down
4 changes: 2 additions & 2 deletions jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def draft_changelog(
dry_run,
post_version_spec,
post_version_message,
silent
silent,
):
"""Create a changelog entry PR"""
repo = repo or util.get_repo()
Expand Down Expand Up @@ -104,7 +104,7 @@ def draft_changelog(
"post_version_spec": post_version_spec,
"post_version_message": post_version_message,
"expected_sha": current_sha,
"silent": silent
"silent": silent,
}
with tempfile.TemporaryDirectory() as d:
metadata_path = Path(d) / util.METADATA_JSON
Expand Down

0 comments on commit 91bd9c4

Please sign in to comment.