diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79c6474..9fc51be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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.4' 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: diff --git a/src/unearth/utils.py b/src/unearth/utils.py index 67449c4..2a4d577 100644 --- a/src/unearth/utils.py +++ b/src/unearth/utils.py @@ -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) diff --git a/src/unearth/vcs/bazaar.py b/src/unearth/vcs/bazaar.py index a1d464b..934b4b9 100644 --- a/src/unearth/vcs/bazaar.py +++ b/src/unearth/vcs/bazaar.py @@ -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, diff --git a/tests/test_evaluator.py b/tests/test_evaluator.py index 0231687..0412eb7 100644 --- a/tests/test_evaluator.py +++ b/tests/test_evaluator.py @@ -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, ), ],