Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #156

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ repos:
- id: check-added-large-files

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.8.3'
rev: 'v0.9.1'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
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
Loading