From 44d1739507d20f54426a4ab9c397fccdd35cd414 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:46:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pip_deepfreeze/__main__.py | 3 +-- tests/test_fixup_direct_url.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pip_deepfreeze/__main__.py b/src/pip_deepfreeze/__main__.py index 05fda1b..76f9839 100644 --- a/src/pip_deepfreeze/__main__.py +++ b/src/pip_deepfreeze/__main__.py @@ -66,8 +66,7 @@ def sync( [], "--pre-sync-command", help=( - "Command to run before the sync operation. " - "Can be specified multiple times." + "Command to run before the sync operation. Can be specified multiple times." ), ), post_sync_commands: List[str] = typer.Option( diff --git a/tests/test_fixup_direct_url.py b/tests/test_fixup_direct_url.py index 3f518da..1f64ef1 100644 --- a/tests/test_fixup_direct_url.py +++ b/tests/test_fixup_direct_url.py @@ -25,11 +25,11 @@ def test_fixup_vcs_direct_url_branch_fake_commit(virtualenv_python: str) -> None frozen = "\n".join(pip_freeze(installer, virtualenv_python)) assert "git+https://github.com/PyPA/pip-test-package" in frozen # fake commit NOT in direct_url.json - assert f"git+https://github.com/PyPA/pip-test-package@{'f'*40}" not in frozen + assert f"git+https://github.com/PyPA/pip-test-package@{'f' * 40}" not in frozen pip_fixup_vcs_direct_urls(virtualenv_python) frozen = "\n".join(pip_freeze(installer, virtualenv_python)) # fake commit in direct_url.json - assert f"git+https://github.com/PyPA/pip-test-package@{'f'*40}" in frozen + assert f"git+https://github.com/PyPA/pip-test-package@{'f' * 40}" in frozen @pytest.mark.parametrize("installer", [PipInstaller(), UvpipInstaller()])