From 44541800235568b62950885d962fbd2f5843299d Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 6 Sep 2025 10:55:26 -0700 Subject: [PATCH 1/2] Perform strict check on Poetry configuration --- Taskfile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index e669add..d3c2726 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -496,7 +496,8 @@ tasks: cmds: - | poetry check \ - --lock + --lock \ + --strict # Make a temporary file and print the path passed to stdout. # Environment variable parameters: From 1fbd35919ab2bdca62c1ecfbff7e67c73ec0db9c Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 6 Sep 2025 11:27:51 -0700 Subject: [PATCH 2/2] 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. --- poetry.lock | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 078143d..c009416 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand. [[package]] name = "anyio" @@ -1584,4 +1584,4 @@ cffi = ["cffi (>=1.11)"] [metadata] lock-version = "2.1" python-versions = "~3.9" -content-hash = "0ceab0fd896e1536fd3ed67b86bd6f7315dde0ef5a18c4ebcd8924d644326b4c" +content-hash = "2dba2097096d2830c709a5ac8f055c5949276ebce333ce88cceab2b3f10f60c6" diff --git a/pyproject.toml b/pyproject.toml index 377b589..8034dd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ package-mode = false [tool.poetry.dependencies] python = "~3.9" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] yamllint = "^1.37.1" codespell = "^2.4.1"