Seperate dev requirements into lint and test (#5474)
This commit is contained in:
parent
30299a41fa
commit
a8fda4f661
@ -27,6 +27,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||||||
pip install -r requirements-cuda.txt
|
pip install -r requirements-cuda.txt
|
||||||
|
|
||||||
# install development dependencies
|
# install development dependencies
|
||||||
|
COPY requirements-lint.txt requirements-lint.txt
|
||||||
|
COPY requirements-test.txt requirements-test.txt
|
||||||
COPY requirements-dev.txt requirements-dev.txt
|
COPY requirements-dev.txt requirements-dev.txt
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
|
@ -1,37 +1,5 @@
|
|||||||
# formatting
|
-r requirements-lint.txt
|
||||||
yapf==0.32.0
|
-r requirements-test.txt
|
||||||
toml==0.10.2
|
|
||||||
tomli==2.0.1
|
|
||||||
ruff==0.1.5
|
|
||||||
codespell==2.3.0
|
|
||||||
isort==5.13.2
|
|
||||||
clang-format==18.1.5
|
|
||||||
|
|
||||||
# type checking
|
# Avoid adding requirements directly to this file.
|
||||||
mypy==1.9.0
|
# Instead, modify the two files referenced above.
|
||||||
types-PyYAML
|
|
||||||
types-requests
|
|
||||||
types-setuptools
|
|
||||||
|
|
||||||
# testing
|
|
||||||
pytest
|
|
||||||
tensorizer>=2.9.0
|
|
||||||
pytest-forked
|
|
||||||
pytest-asyncio
|
|
||||||
pytest-rerunfailures
|
|
||||||
pytest-shard
|
|
||||||
|
|
||||||
# testing utils
|
|
||||||
awscli
|
|
||||||
einops # required for MPT
|
|
||||||
httpx
|
|
||||||
peft
|
|
||||||
requests
|
|
||||||
ray
|
|
||||||
sentence-transformers # required for embedding
|
|
||||||
|
|
||||||
# Benchmarking
|
|
||||||
aiohttp
|
|
||||||
|
|
||||||
# quantization
|
|
||||||
bitsandbytes==0.42.0
|
|
||||||
|
14
requirements-lint.txt
Normal file
14
requirements-lint.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# formatting
|
||||||
|
yapf==0.32.0
|
||||||
|
toml==0.10.2
|
||||||
|
tomli==2.0.1
|
||||||
|
ruff==0.1.5
|
||||||
|
codespell==2.3.0
|
||||||
|
isort==5.13.2
|
||||||
|
clang-format==18.1.5
|
||||||
|
|
||||||
|
# type checking
|
||||||
|
mypy==1.9.0
|
||||||
|
types-PyYAML
|
||||||
|
types-requests
|
||||||
|
types-setuptools
|
22
requirements-test.txt
Normal file
22
requirements-test.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# testing
|
||||||
|
pytest
|
||||||
|
tensorizer>=2.9.0
|
||||||
|
pytest-forked
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-rerunfailures
|
||||||
|
pytest-shard
|
||||||
|
|
||||||
|
# testing utils
|
||||||
|
awscli
|
||||||
|
einops # required for MPT
|
||||||
|
httpx
|
||||||
|
peft
|
||||||
|
requests
|
||||||
|
ray
|
||||||
|
sentence-transformers # required for embedding
|
||||||
|
|
||||||
|
# Benchmarking
|
||||||
|
aiohttp
|
||||||
|
|
||||||
|
# quantization
|
||||||
|
bitsandbytes==0.42.0
|
Loading…
x
Reference in New Issue
Block a user