Skip to content

Move dev dependencies to dependency groups - #395

Open
hippi345 wants to merge 2 commits into
pyt-team:mainfrom
hippi345:cursor/move-dev-deps-dependency-groups-8053
Open

hippi345 wants to merge 2 commits into
pyt-team:mainfrom
hippi345:cursor/move-dev-deps-dependency-groups-8053

Conversation

@hippi345

Copy link
Copy Markdown

Description

Moves development and documentation build dependencies out of [project.optional-dependencies] into PEP 735 [dependency-groups], following the same approach as pyt-team/TopoNetX#402.

  • dependency-groups.dev: pytest, mypy, ruff, pre-commit, coverage, and related test tooling
  • dependency-groups.docs: Sphinx and nbsphinx stack
  • doc / all extras: optional runtime packages only

Contributing docs now show installing with uv pip install -e . --group dev and uv pip install -e .[doc] --group docs.

Locally: mypy passes, 148 pytest tests pass, ruff is clean.

Note for maintainers: the CI workflows still install with uv pip install -e .[all] / .[doc], which no longer pull in the test/docs tooling. Those install lines will need --group dev / --group docs added. I left the workflow files untouched so you can update them however you prefer.

Closes #296

Relocate pytest, mypy, ruff, pre-commit, and Sphinx packages from
project optional-dependencies into dependency-groups dev and docs.
Keep doc/all extras for non-development optional packages only.
Keep lint, test, dev, and all extras alongside PEP 735 dependency
groups so workflows that install .[all] or .[doc] continue to receive
mypy, pytest, and Sphinx build dependencies.
@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.36%. Comparing base (983d5b2) to head (a16af75).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #395   +/-   ##
=======================================
  Coverage   96.36%   96.36%           
=======================================
  Files          58       58           
  Lines        2092     2092           
=======================================
  Hits         2016     2016           
  Misses         76       76           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move dev dependencies to dependency groups

1 participant