Skip to content

Comments

feat: support non-dev dependency groups#1440

Open
mkniewallner wants to merge 2 commits intomainfrom
feat/non-dev-dependency-groups
Open

feat: support non-dev dependency groups#1440
mkniewallner wants to merge 2 commits intomainfrom
feat/non-dev-dependency-groups

Conversation

@mkniewallner
Copy link
Collaborator

@mkniewallner mkniewallner commented Jan 26, 2026

Closes #1376.

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Add a new --non-dev-dependency-groups argument (and non_dev_dependency_groups configuration equivalent) to be able to specify groups from [dependency-groups] section that should be treated as containing regular dependencies instead of development ones.

@mkniewallner mkniewallner force-pushed the feat/non-dev-dependency-groups branch from d39baf9 to bd6123b Compare January 26, 2026 16:33
@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.4%. Comparing base (6c73601) to head (1f654e6).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1440   +/-   ##
=====================================
  Coverage   93.4%   93.4%           
=====================================
  Files         38      38           
  Lines       1036    1046   +10     
  Branches     103     105    +2     
=====================================
+ Hits         968     978   +10     
  Misses        54      54           
  Partials      14      14           

☔ View full report in Codecov by Sentry.
📢 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.

@mkniewallner mkniewallner force-pushed the feat/non-dev-dependency-groups branch from bd6123b to 70b0ae7 Compare February 7, 2026 07:20
@mkniewallner mkniewallner force-pushed the feat/non-dev-dependency-groups branch from 70b0ae7 to 1f654e6 Compare February 7, 2026 08:34
@mkniewallner mkniewallner marked this pull request as ready for review February 7, 2026 09:27
@mkniewallner mkniewallner requested a review from fpgmaas February 7, 2026 09:27
Copy link
Owner

Choose a reason for hiding this comment

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

Shouldn't we pass the argument to the other DependencyGetter's as well? Now we only seem to pass it to PoetryDependencyGetter.

with Path("pyproject.toml").open("w") as f:
f.write(fake_pyproject_toml)

getter = PEP621DependencyGetter(config=Path("pyproject.toml"), non_dev_dependency_groups=("group2",))
Copy link
Owner

Choose a reason for hiding this comment

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

See comment above; now we don't seem to test if the field introduced by the PR works as expected in the DependencyGetterBuilder. Should we add/modify an existing functional test too?

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.

Respect uv groups

2 participants