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 12, 2022
1 parent e8498df commit 509a7d2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

def bump_version(version_spec, version_cmd, changelog_path):
"""Bump the version and verify new version"""
version = util.bump_version(version_spec, version_cmd=version_cmd, changelog_path=changelog_path)
version = util.bump_version(
version_spec, version_cmd=version_cmd, changelog_path=changelog_path
)

# A properly parsed version will have a "major" attribute
parsed = parse_version(version)
Expand All @@ -51,7 +53,9 @@ def update_dependencies(python_package, python_packages):
try:
i = python_names.index(dep_name)
except ValueError:
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.")
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."
)
dep_path = python_packages[i][0]
os.chdir(dep_path)
deps[dep_name] = util.get_version()
Expand All @@ -75,7 +79,6 @@ def _update_dependencies(dependencies, deps):
dependencies[i] = k + " ==" + v



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

0 comments on commit 509a7d2

Please sign in to comment.