fix: move test-only deps out of requirements.txt into requirements-dev.txt (#411)

* fix: remove test-only deps from requirements.txt, add requirements-dev.txt

Test dependencies (pytest, pytest-asyncio, pytest-mock, pytest-benchmark) should
not be installed in production. Move them to requirements-dev.txt.

Closes #410

Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com>

* fix: add requirements-dev.txt with test and dev dependencies

Closes #410

Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com>

---------

Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com>
This commit is contained in:
Cocoon-Break 2026-04-26 08:11:34 +08:00 committed by GitHub
parent 7f201bdf6f
commit 1c17c50930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 13 deletions

13
requirements-dev.txt Normal file
View file

@ -0,0 +1,13 @@
# Development and testing dependencies
# Install with: pip install -r requirements.txt -r requirements-dev.txt
# Testing
pytest>=7.0.0
pytest-asyncio>=0.21.0
pytest-mock>=3.10.0
pytest-benchmark>=4.0.0
# Linting and formatting
black>=23.0.0
flake8>=6.0.0
mypy>=1.0.0

View file

@ -4,14 +4,6 @@ scipy>=1.7.0
torch>=1.12.0
torchvision>=0.13.0
# Testing dependencies
pytest>=7.0.0
pytest-asyncio>=0.21.0
pytest-mock>=3.10.0
pytest-benchmark>=4.0.0
httpx>=0.24.0
pydantic-settings>=2.0.0
# API dependencies
fastapi>=0.95.0
uvicorn>=0.20.0
@ -20,6 +12,8 @@ pydantic>=1.10.0
python-jose[cryptography]>=3.3.0
python-multipart>=0.0.6
passlib[bcrypt]>=1.7.4
httpx>=0.24.0
pydantic-settings>=2.0.0
# Database dependencies
sqlalchemy>=2.0.0
@ -42,8 +36,3 @@ scikit-learn>=1.2.0
# Monitoring dependencies
prometheus-client>=0.16.0
# Development dependencies
black>=23.0.0
flake8>=6.0.0
mypy>=1.0.0