Skip to content

Commit f75afe8

Browse files
committed
pre-commit run --all-files
1 parent 4addeca commit f75afe8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jupyter_releaser/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_version_entry(
8383
branch = branch or util.get_branch()
8484
since = since or util.get_latest_tag(ref or branch, since_last_stable)
8585

86-
if since == "" :
86+
if since == "":
8787
since = util.get_first_commit(ref or branch)
8888

8989
util.log(f"Getting changes to {repo} since {since} on branch {branch}...")

jupyter_releaser/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,14 @@ def get_latest_tag(source, since_last_stable=False):
280280

281281
return tags[0]
282282

283+
283284
def get_first_commit(source):
284285
"""Get the default 'since' value for a branch"""
285286
source = source or get_branch()
286-
commit = run(f"git rev-list --max-parents=0 HEAD", quiet=True)
287+
commit = run("git rev-list --max-parents=0 HEAD", quiet=True)
287288
return commit
288289

290+
289291
def retry(cmd, **kwargs):
290292
"""Run a command with retries"""
291293
attempt = 0

0 commit comments

Comments
 (0)