Skip to content

Poetry workflow incompatible with pyproject.toml dev dependencies #9

@rodja

Description

@rodja

Problem

The Poetry installation command in .github/workflows/test.yml.jinja is incompatible with how dev dependencies are declared in pyproject.toml.jinja.

Workflow (line 30):

poetry install --with dev --no-root

pyproject.toml (lines 21-34):

[project.optional-dependencies]
dev = [...]

Issue

Poetry's --with dev flag expects dependency groups in Poetry's native format:

[tool.poetry.group.dev.dependencies]
mypy = ">=1.18.2, <2.0.0"

But the template uses PEP 621 format ([project.optional-dependencies]), which Poetry won't read when using --with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions