Skip to content

Add pre-commit to dev dependency group in Poetry template #219

@da1910

Description

@da1910

📝 Description of the feature

Poetry projects created with this template work great, but poetry install does not play nicely with pre-commit run. Poetry removes packages that are not in the lock file, and pre-commit installs PyYAML amongst other things, this is then removed on subsequent invocations of poetry install will uninstall one or more dependencies of pre-commit

💡 Steps for implementing the feature

Add pre-commit as an entry in the [tool.poetry.group.dev.dependencies] group

🔗 Useful links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features or code improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions