Skip to content

Commit 1fbd359

Browse files
committed
Migrate Poetry configuration from deprecated tool.poetry.dev-dependencies table
Originally Poetry supported two distinct dependency types, each defined separately in the `pyproject.toml` file: * main: defined under the `tool.poetry.dependencies` table * dev: defined under the `tool.poetry.dev-dependencies` table This concept of dependency types was later made more flexible by allowing the user to define any number of arbitrary dependency "groups", with "dev" simply being one of those groups. A new table naming scheme was created to support this flexible dependency groups system. For the sake of backwards compatibility, Poetry does still support use of the `tool.poetry.dev-dependencies` table. However, it is deprecated and its use results in a warning. The project's Poetry configuration is hereby migrated to the modern format.
1 parent 4454180 commit 1fbd359

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package-mode = false
66
[tool.poetry.dependencies]
77
python = "~3.9"
88

9-
[tool.poetry.dev-dependencies]
9+
[tool.poetry.group.dev.dependencies]
1010
yamllint = "^1.37.1"
1111
codespell = "^2.4.1"
1212

0 commit comments

Comments
 (0)