From 11bb2d81826e2bb0e5df642a01f4cea920983fd2 Mon Sep 17 00:00:00 2001 From: Heikki Henriksen Date: Thu, 7 May 2026 12:34:09 +0200 Subject: [PATCH] Consolidate test dependencies into pyproject.toml Move all test/lint deps from requirements-test.txt into [project.optional-dependencies] with separate `test` and `lint` groups, and update CI to install via `pip install -e .[test,lint]`. The requirements-test.txt file is removed. Per @agners' follow-up note on #157. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/test.yml | 2 +- pyproject.toml | 11 ++++++++--- requirements-test.txt | 6 ------ 3 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 requirements-test.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c3de5e..6a73d50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . -r requirements-test.txt + pip install -e ".[test,lint]" - name: Flake8 run: flake8 pyprusalink tests - name: Black diff --git a/pyproject.toml b/pyproject.toml index 60d1a86..f891a68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,9 +25,14 @@ dependencies = [ [project.optional-dependencies] test = [ - "pytest>=8.0", - "pytest-asyncio>=0.24", - "respx>=0.22", + "pytest>=9.0.3", + "pytest-asyncio>=1.3.0", + "respx>=0.23.1", +] +lint = [ + "black==26.3.1", + "flake8==7.3.0", + "isort==8.0.1", ] [tool.setuptools] diff --git a/requirements-test.txt b/requirements-test.txt deleted file mode 100644 index b002651..0000000 --- a/requirements-test.txt +++ /dev/null @@ -1,6 +0,0 @@ -black==26.3.1 -flake8==7.3.0 -isort==8.0.1 -pytest>=9.0.3 -pytest-asyncio>=1.3.0 -respx>=0.23.1