Skip to content

Commit 36aa71b

Browse files
authored
Add pypi.org as explicit default index for uv in pre-commit (#4167)
* Add pypi.org as explicit default index for uv Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> * try modifying uv.lock pointing to artifact registry -- ci should fail * try uv lock before Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> * try wrong uv.lock * test * test Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> * final test with wrong uv.lock -- precommit job should fail again Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> * fix uv.lock -- ci should pass Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> --------- Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
1 parent 1e92f1a commit 36aa71b

File tree

2 files changed

+4025
-3921
lines changed

2 files changed

+4025
-3921
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ repos:
1010
- id: ruff-format
1111
- repo: https://github.com/astral-sh/uv-pre-commit
1212
# uv version.
13-
rev: 0.6.0
13+
rev: 1ce7e7fa8aa6eda60e54755509a9380b0f1c5d08 # frozen: v0.9.30
1414
hooks:
1515
- id: uv-lock
16+
args: ["--index-url", "https://pypi.org/simple/"]
1617
- repo: https://github.com/rstcheck/rstcheck
1718
rev: 77490ffa33bfc0928975ae3cf904219903db755d # frozen: v6.2.5
1819
hooks:

0 commit comments

Comments
 (0)