Skip to content

Chore: Move dev-dependencies to [tool.poetry.group.dev] (Poetry deprecation fix)#1871

Open
lb803 wants to merge 2 commits intorobbrad:masterfrom
lb803:chore/rename_poetry_dev_group
Open

Chore: Move dev-dependencies to [tool.poetry.group.dev] (Poetry deprecation fix)#1871
lb803 wants to merge 2 commits intorobbrad:masterfrom
lb803:chore/rename_poetry_dev_group

Conversation

@lb803
Copy link

@lb803 lb803 commented Feb 28, 2026

Hi everyone,

Description of the Issue

I noticed that I was getting a warning while installing the poetry dependencies:

The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead.

I did a quick search and I realised that tool.poetry.dev-dependencies is deprecated in favor of tool.poetry.group.dev.dependencies in poetry 2.0.0.

Refs:
https://python-poetry.org/blog/announcing-poetry-2.0.0/
python-poetry/poetry-core#754

Description of the PR

This PR replaces tool.poetry.dev-dependencies with tool.poetry.group.dev.dependencies in the pyproject.toml file.

Summary by CodeRabbit

  • Chores
    • Reorganized project configuration: relocated development dependencies into the new grouped dev-dependencies section while preserving all entries and their order.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 28, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b4daf33 and 7e98316.

📒 Files selected for processing (1)
  • pyproject.toml
🚧 Files skipped from review as they are similar to previous changes (1)
  • pyproject.toml

📝 Walkthrough

Walkthrough

The pull request updates pyproject.toml by moving the dev dependency block from [tool.poetry.dev-dependencies] to [tool.poetry.group.dev.dependencies], keeping all dependency entries and their order unchanged and without other structural edits.

Changes

Cohort / File(s) Summary
Poetry Configuration
pyproject.toml
Replaces the [tool.poetry.dev-dependencies] header with [tool.poetry.group.dev.dependencies], relocating the dev dependency list without adding, removing, or altering dependency entries or their order.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I hopped through lines of toml tonight,
Swapped a header left and right,
Kept each package in its place,
Grouped the devs with gentle grace,
A tidy hop, a small delight.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: moving dev-dependencies to the new Poetry group format to address a deprecation warning.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
pyproject.toml (1)

44-46: Consider reordering sections for conventional TOML structure.

The group declaration [tool.poetry.group.dev] appears after its dependencies subtable [tool.poetry.group.dev.dependencies]. While functionally equivalent, placing the parent section first is more conventional and improves readability:

[tool.poetry.group.dev]
optional = false

[tool.poetry.group.dev.dependencies]
black = "*"
...

Also note that optional = false is the default for Poetry dependency groups, so this line is technically redundant—though being explicit is fine.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pyproject.toml` around lines 44 - 46, Move the parent TOML section
[tool.poetry.group.dev] to appear before its subtable
[tool.poetry.group.dev.dependencies] so the file reads with the parent section
first (e.g., place [tool.poetry.group.dev] with its optional = false setting
immediately above [tool.poetry.group.dev.dependencies]); optionally remove the
redundant optional = false line since Poetry defaults to false if you prefer
brevity.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@pyproject.toml`:
- Around line 44-46: Move the parent TOML section [tool.poetry.group.dev] to
appear before its subtable [tool.poetry.group.dev.dependencies] so the file
reads with the parent section first (e.g., place [tool.poetry.group.dev] with
its optional = false setting immediately above
[tool.poetry.group.dev.dependencies]); optionally remove the redundant optional
= false line since Poetry defaults to false if you prefer brevity.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f6cbad7 and b4daf33.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml

[tool.poetry.group.dev] as coderabbitai suggested to be redundant in this case
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.

1 participant