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:
Work with a dirty git state, or
Stash and unstash the changes repeatedly, or
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.
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 thatpyproject.toml
is often tracked by git, so if I want to add personal development dependencies to a python project, I either need to: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.