From ae9e47162ff4026008b1f15f21c3367d47533863 Mon Sep 17 00:00:00 2001 From: Morgan Wowk Date: Tue, 12 May 2026 18:33:07 -0700 Subject: [PATCH] Pin uv index to PyPI so Shopify global config does not pollute lock file Shopify engineers have a global ~/.config/uv/uv.toml that injects the internal Shopify registry as an extra-index-url. Without a project-level override, running `uv lock` or `uv add` rewrites every package source in uv.lock to pkgs.shopify.io, producing a large noisy diff. Setting index-url and extra-index-url = [] in [tool.uv] takes per-field precedence over user-level config (uv does not merge these), so the lock file stays on PyPI regardless of the engineer's local uv configuration. Co-Authored-By: Claude Sonnet 4.6 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 10faa9b..b13c775 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,8 @@ huggingface = [ [tool.uv] exclude-newer = "7 days" +index-url = "https://pypi.org/simple" +extra-index-url = [] [tool.pytest.ini_options] testpaths = ["tests"]