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 #164

Closed
wants to merge 2 commits into from
Closed
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 @@ -16,15 +16,15 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.0
rev: v1.14.1
hooks:
- id: mypy
args: ["--strict"]
exclude: '^(docs|tasks|tests)|setup\.py'
additional_dependencies: ["httpx", "packaging", "typer>=0.3.2"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.4
rev: v0.9.3
hooks:
- id: ruff
- id: ruff-format
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
Loading