Skip to content

Conversation

@harshil21
Copy link
Member

Closes #4795.

Also ran the standard vscode file formatter on pyproject.toml, so if you're wondering about that change, it's that.

Also works with uv: uv sync --all-extras --all-groups

@harshil21 harshil21 requested review from Bibo-Joshi and Copilot May 23, 2025 04:27
@harshil21 harshil21 added the 🛠 code-quality change type: code-quality label May 23, 2025
@github-actions github-actions bot removed the 🛠 code-quality change type: code-quality label May 23, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements PEP 735 dependency groups, removes legacy requirement files, and updates CI/docs workflows to use pip’s --group installs.

  • Define tests, docs, and all dependency groups in pyproject.toml
  • Remove requirements-*.txt files and switch workflows from -r installs to --group flags
  • Reformat array syntax and lint settings in pyproject.toml for consistency

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
requirements-unit-tests.txt Removed legacy test requirements file
requirements-dev-all.txt Removed legacy dev-all requirements file
pyproject.toml Added [dependency-groups], collapsed arrays, updated optional-dependencies
docs/requirements-docs.txt Removed legacy docs requirements file
.readthedocs.yml Updated RTD install step—now only pip install .
.github/workflows/unit_tests.yml Switched to pip install . --group tests, removed old installs
.github/workflows/test_official.yml Switched to pip install .[all] --group tests
.github/workflows/docs-linkcheck.yml Switched to pip install .[all] --group all
.github/workflows/docs-admonitions.yml Switched to pip install . --group all
.github/workflows/chango.yml Switched to pip install . --group docs
.github/CONTRIBUTING.rst Updated contributor setup to use --group all
Comments suppressed due to low confidence (3)

.readthedocs.yml:20

  • The ReadTheDocs config no longer installs documentation dependencies. You should add an install argument to include the docs group (e.g., args: ["--group", "docs"]) so Sphinx requirements are pulled in.
    - method: pip
      path: .

.github/workflows/unit_tests.yml:41

  • [nitpick] The tests dependency group already includes pytest-xdist, so this extra installation is redundant and can be removed.
python -W ignore -m pip install pytest-xdist

.github/workflows/docs-admonitions.yml:34

  • With the old requirements files removed, the cache no longer tracks dependency changes. Consider adding cache-dependency-path: 'pyproject.toml' (or similar) to ensure the cache is invalidated when dependencies are updated.
-          cache-dependency-path: '**/requirements*.txt'

@harshil21 harshil21 added the 🛠 code-quality change type: code-quality label May 23, 2025
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Really nice seeing that PEP in action!

@harshil21 harshil21 mentioned this pull request May 24, 2025
2 tasks
@Bibo-Joshi Bibo-Joshi merged commit 98e94a1 into master May 24, 2025
29 checks passed
@Bibo-Joshi Bibo-Joshi deleted the pep-735 branch May 24, 2025 07:48
@github-actions github-actions bot locked and limited conversation to collaborators Jun 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🛠 code-quality change type: code-quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support PEP 735 Dependency Groups

3 participants