From c7b07a95a67a96356cf0abb31c7d13379d2cbec5 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Fri, 21 Feb 2025 06:03:27 +0000 Subject: [PATCH] Use pre-commit to update `requirements-test.txt` (#13617) --- .pre-commit-config.yaml | 7 +++++++ requirements-test.txt | 31 +++++++++++++------------------ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c4cb767c9ecc..6a66131cdb4dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,6 +44,13 @@ repos: hooks: - id: actionlint exclude: 'vllm/third_party/.*' +repos: +- repo: https://github.com/astral-sh/uv-pre-commit + rev: 0.6.2 + hooks: + - id: pip-compile + args: [requirements-test.in, -o, requirements-test.txt] + files: ^requirements-test\.(in|txt)$ - repo: local hooks: - id: mypy-local diff --git a/requirements-test.txt b/requirements-test.txt index f91586419148e..11f0e10969a63 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,9 +1,5 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# python3.12 -m piptools compile requirements-test.in -o requirements-test.txt -# +# This file was autogenerated by uv via the following command: +# uv pip compile requirements-test.in -o requirements-test.txt absl-py==2.1.0 # via rouge-score accelerate==1.0.1 @@ -141,7 +137,7 @@ frozenlist==1.5.0 # aiohttp # aiosignal # ray -fsspec[http]==2024.9.0 +fsspec==2024.9.0 # via # datasets # evaluate @@ -221,7 +217,7 @@ librosa==0.10.2.post1 # via -r requirements-test.in llvmlite==0.43.0 # via numba -lm-eval[api]==0.4.4 +lm-eval==0.4.4 # via -r requirements-test.in lxml==5.3.0 # via sacrebleu @@ -238,10 +234,8 @@ mbstrdecoder==1.1.3 # typepy mdurl==0.1.2 # via markdown-it-py -mistral-common[opencv]==1.5.1 - # via - # -r requirements-test.in - # mistral-common +mistral-common==1.5.1 + # via -r requirements-test.in more-itertools==10.5.0 # via lm-eval mpmath==1.3.0 @@ -418,7 +412,7 @@ pybind11==2.13.6 # via lm-eval pycparser==2.22 # via cffi -pydantic[email]==2.9.2 +pydantic==2.9.2 # via # datamodel-code-generator # mistral-common @@ -478,7 +472,7 @@ pyyaml==6.0.2 # vocos rapidfuzz==3.12.1 # via jiwer -ray[adag]==2.40.0 +ray==2.40.0 # via -r requirements-test.in redis==5.2.0 # via tensorizer @@ -549,6 +543,10 @@ sentence-transformers==3.2.1 # via -r requirements-test.in sentencepiece==0.2.0 # via mistral-common +setuptools==75.8.0 + # via + # pytablewriter + # torch six==1.16.0 # via # python-dateutil @@ -646,7 +644,7 @@ tritonclient==2.51.0 # via # -r requirements-test.in # genai-perf -typepy[datetime]==1.3.2 +typepy==1.3.2 # via # dataproperty # pytablewriter @@ -683,6 +681,3 @@ yarl==1.17.1 # via aiohttp zstandard==0.23.0 # via lm-eval - -# The following packages are considered to be unsafe in a requirements file: -# setuptools