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

Allow for .rye.toml to configure pyproject.toml locally #1374

Open
MilesCranmer opened this issue Sep 8, 2024 · 0 comments
Open

Allow for .rye.toml to configure pyproject.toml locally #1374

MilesCranmer opened this issue Sep 8, 2024 · 0 comments

Comments

@MilesCranmer
Copy link
Contributor

It seems there is no way to add a development dependency to a virtual environment without modifying pyproject.toml. The issue with this approach is that pyproject.toml is often tracked by git, so if I want to add personal development dependencies to a python project, I either need to:

  1. Work with a dirty git state, or
  2. Stash and unstash the changes repeatedly, or
  3. Use git update-index to ignore the pyproject.

While it is useful to have the [tool.rye] for global settings across multiple users, I think it would also be good to have a separate per-project file so I can set local settings. .rye.toml might make the most sense – this would basically allow a user to set all of the settings in [tool.rye], but locally, without changing the tracked pyproject settings.

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

No branches or pull requests

1 participant