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 84275fa commit 7ab1a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pip_deepfreeze/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_fixup_direct_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()])
Expand Down

0 comments on commit 7ab1a73

Please sign in to comment.