Skip to content

Commit 4f32e93

Browse files
committed
tool: Auto refresh the lock file on commit
Signed-off-by: Naren Dasan <[email protected]>
1 parent ab14920 commit 4f32e93

File tree

3 files changed

+414
-357
lines changed

3 files changed

+414
-357
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ repos:
5555
rev: v1.22.9
5656
hooks:
5757
- id: typos
58+
- repo: https://github.com/astral-sh/uv-pre-commit
59+
# uv version.
60+
rev: 0.4.10
61+
hooks:
62+
# Update the uv lockfile
63+
- id: uv-lock
5864
- repo: local
5965
hooks:
6066
- id: dont-commit-upstream

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ dependencies = [
6565
dynamic = ["version"]
6666

6767
[project.optional-dependencies]
68-
#torchvision = ["torchvision>=0.21.dev,<0.22.0"] # Reenable once torchvision bumps to 2.6.0
68+
torchvision = [
69+
"torchvision",
70+
] #Leaving torchvisions dependency unconstrained so uv can just install something that should work for the torch we have. TV's on PyT makes it hard to put version constrains in
6971
quantization = ["nvidia-modelopt[deploy,hf,torch]~=0.17.0"]
7072
monitoring-tools = ["rich>=13.7.1"]
7173
jupyter = ["rich[jupyter]>=13.7.1"]
@@ -85,22 +87,21 @@ dev-dependencies = [
8587
"pre-commit>=2.20.0",
8688
"black>=22.6.0",
8789
"clang-format==14.0.6",
90+
"typos",
8891
"mypy",
8992
"isort",
9093
"ruff",
9194
"pytest",
92-
"parameterized",
95+
"pytest-xdist",
96+
"parameterized>=0.2.0",
9397
"expecttest==0.1.6",
9498
"pyyaml",
9599
]
96100

97-
environments = [
98-
"sys_platform == 'linux'",
99-
"sys_platform == 'windows'",
100-
]
101+
environments = ["sys_platform == 'linux'", "sys_platform == 'windows'"]
101102

102103
extra-index-url = [
103-
"https://download.pytorch.org/whl/nightly/cu124" # We are going to define the dev enviorment as latest supported CUDA, and allow CI to handle the others, change as needed
104+
"https://download.pytorch.org/whl/nightly/cu124", # We are going to define the dev enviorment as latest supported CUDA, and allow CI to handle the others, change as needed
104105
]
105106

106107
prerelease = "if-necessary-or-explicit"

0 commit comments

Comments
 (0)