Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto-relax after add #49

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add auto-relax after add #49

wants to merge 3 commits into from

Conversation

zanieb
Copy link
Owner

@zanieb zanieb commented Aug 19, 2023

Runs poetry relax after poetry add succeeds. Parses options from add and sends them to relax to try to keep the same scope as an add command. For example, --dry-run is passed through to prevent relaxing when something wasn't actually added and --group is passed through to prevent relaxing outside of the group an item is added to.

Requires opt-in with configuration

[tool.poetry-relax]
relax_on_add = true

Closes #5

Needs tests

pyproject.toml Outdated Show resolved Hide resolved
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.

Support for auto-relax after poetry add
1 participant