[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-16 05:52:12 +00:00
commit 1923405095

View file

@ -670,14 +670,14 @@ def test_local_dir_without_metadata_passes_through(shim, tmp_path):
@pytest.mark.parametrize(
"tool, flag, value",
[
pytest.param("uv", "--torch-backend", "cu128", id="uv-torch-backend"),
pytest.param("uv", "--resolution", "lowest", id="uv-resolution"),
pytest.param("uv", "--default-index", "https://mirror/simple", id="uv-default-index"),
pytest.param("uv", "--exclude-newer", "2026-01-01", id="uv-exclude-newer"),
pytest.param("uv", "-b", "build-constraints.txt", id="uv-build-constraints-short"),
pytest.param("pip", "--proxy", "http://proxy:3128", id="pip-proxy"),
pytest.param("pip", "--retries", "3", id="pip-retries"),
pytest.param("pip", "--trusted-host", "mirror.internal", id="pip-trusted-host"),
pytest.param("uv", "--torch-backend", "cu128", id = "uv-torch-backend"),
pytest.param("uv", "--resolution", "lowest", id = "uv-resolution"),
pytest.param("uv", "--default-index", "https://mirror/simple", id = "uv-default-index"),
pytest.param("uv", "--exclude-newer", "2026-01-01", id = "uv-exclude-newer"),
pytest.param("uv", "-b", "build-constraints.txt", id = "uv-build-constraints-short"),
pytest.param("pip", "--proxy", "http://proxy:3128", id = "pip-proxy"),
pytest.param("pip", "--retries", "3", id = "pip-retries"),
pytest.param("pip", "--trusted-host", "mirror.internal", id = "pip-trusted-host"),
],
)
def test_value_flag_protected_only_noops(shim, tool, flag, value):
@ -690,9 +690,9 @@ def test_value_flag_protected_only_noops(shim, tool, flag, value):
@pytest.mark.parametrize(
"tool, flag, value",
[
pytest.param("uv", "--torch-backend", "cu128", id="uv-torch-backend"),
pytest.param("uv", "--resolution", "lowest", id="uv-resolution"),
pytest.param("pip", "--proxy", "http://proxy:3128", id="pip-proxy"),
pytest.param("uv", "--torch-backend", "cu128", id = "uv-torch-backend"),
pytest.param("uv", "--resolution", "lowest", id = "uv-resolution"),
pytest.param("pip", "--proxy", "http://proxy:3128", id = "pip-proxy"),
],
)
def test_value_flag_pair_forwarded_with_kept_target(shim, tool, flag, value):