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 Jan 20, 2025
1 parent bbc132d commit d289ede
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/unearth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def url_to_path(url: str) -> str:
"""
Convert a file: URL to a path.
"""
assert url.startswith(
"file:"
), f"You can only turn file: urls into filenames (not {url!r})"
assert url.startswith("file:"), (
f"You can only turn file: urls into filenames (not {url!r})"
)

_, netloc, path, _, _ = parse.urlsplit(url)

Expand Down
2 changes: 1 addition & 1 deletion src/unearth/vcs/bazaar.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fetch_new(
elif self.verbosity == 1:
flag = ""
else:
flag = f"-{'v'*self.verbosity}"
flag = f"-{'v' * self.verbosity}"
cmd_args: list[str | HiddenText] = [
"branch",
flag,
Expand Down
3 changes: 1 addition & 2 deletions tests/test_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ def test_evaluate_against_missing_version(link):
True,
),
(
"https://test.pypi.org/files/click-8.1.3-py3-none-any.whl"
"#sha256=1112222",
"https://test.pypi.org/files/click-8.1.3-py3-none-any.whl#sha256=1112222",
False,
),
],
Expand Down

0 comments on commit d289ede

Please sign in to comment.