From 53666760fcb65eab4cf5cc5b0af275321ad759ac Mon Sep 17 00:00:00 2001 From: Xiaoxia AI Date: Thu, 18 Jun 2026 17:26:40 +0800 Subject: [PATCH] chore(ci): unify dev dependencies via requirements-dev --- .gitea/workflows/ci-cd.yml | 4 ++-- .github/workflows/ci-cd.yml | 4 ++-- requirements-dev.txt | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 1b7913fd8..12de27421 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -29,7 +29,7 @@ jobs: python3 -m venv .venv . .venv/bin/activate python -m pip install --index-url https://pypi.org/simple --upgrade pip - python -m pip install --index-url https://pypi.org/simple black isort flake8 mypy bandit + python -m pip install --index-url https://pypi.org/simple -r requirements-dev.txt - name: Run checks run: | @@ -60,7 +60,7 @@ jobs: python3 -m venv .venv . .venv/bin/activate python -m pip install --index-url https://pypi.org/simple --upgrade pip - python -m pip install --index-url https://pypi.org/simple pytest pytest-cov pytest-asyncio + python -m pip install --index-url https://pypi.org/simple -r requirements-dev.txt - name: Run tests run: | diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 1b7913fd8..12de27421 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -29,7 +29,7 @@ jobs: python3 -m venv .venv . .venv/bin/activate python -m pip install --index-url https://pypi.org/simple --upgrade pip - python -m pip install --index-url https://pypi.org/simple black isort flake8 mypy bandit + python -m pip install --index-url https://pypi.org/simple -r requirements-dev.txt - name: Run checks run: | @@ -60,7 +60,7 @@ jobs: python3 -m venv .venv . .venv/bin/activate python -m pip install --index-url https://pypi.org/simple --upgrade pip - python -m pip install --index-url https://pypi.org/simple pytest pytest-cov pytest-asyncio + python -m pip install --index-url https://pypi.org/simple -r requirements-dev.txt - name: Run tests run: | diff --git a/requirements-dev.txt b/requirements-dev.txt index 70c14e3e2..0de62564c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,15 +1,15 @@ -# requirements-dev.txt - 开发环境依赖 +# 小虾 SaaS - 开发 / CI 依赖 -# 测试 -pytest==8.0.0 -pytest-cov==4.1.0 -pytest-asyncio==0.23.0 +-r requirements.txt # 代码质量 -black==24.1.0 -flake8==7.0.0 -mypy==1.8.0 -isort==5.13.0 +black==26.5.1 +isort==8.0.1 +flake8==7.3.0 +mypy==2.1.0 +bandit==1.9.4 -# 类型检查 -types-requests==2.31.0 +# 测试 +pytest==8.3.3 +pytest-asyncio==0.24.0 +pytest-cov==6.0.0