Skip to content

Commit 509a7d2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e8498df commit 509a7d2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

jupyter_releaser/lib.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
def bump_version(version_spec, version_cmd, changelog_path):
2626
"""Bump the version and verify new version"""
27-
version = util.bump_version(version_spec, version_cmd=version_cmd, changelog_path=changelog_path)
27+
version = util.bump_version(
28+
version_spec, version_cmd=version_cmd, changelog_path=changelog_path
29+
)
2830

2931
# A properly parsed version will have a "major" attribute
3032
parsed = parse_version(version)
@@ -51,7 +53,9 @@ def update_dependencies(python_package, python_packages):
5153
try:
5254
i = python_names.index(dep_name)
5355
except ValueError:
54-
raise RuntimeError(f"Package {python_package[1]} depends on {dep_name}, which has not been released yet. Please put the dependency before this package in the python_packages list.")
56+
raise RuntimeError(
57+
f"Package {python_package[1]} depends on {dep_name}, which has not been released yet. Please put the dependency before this package in the python_packages list."
58+
)
5559
dep_path = python_packages[i][0]
5660
os.chdir(dep_path)
5761
deps[dep_name] = util.get_version()
@@ -75,7 +79,6 @@ def _update_dependencies(dependencies, deps):
7579
dependencies[i] = k + " ==" + v
7680

7781

78-
7982
def check_links(ignore_glob, ignore_links, cache_file, links_expire):
8083
"""Check URLs for HTML-containing files."""
8184
cache_dir = osp.expanduser(cache_file).replace(os.sep, "/")

0 commit comments

Comments
 (0)