pyproject.toml
template manager
#12256
Labels
enhancement
New feature or improvement to existing functionality
pyproject.toml
template manager
#12256
Summary
Would it be possible to add some sort of template manager for pyproject.toml? I find myself copying and pasting my tools settings for things like ruff, mypy, etc a lot. It would be really nice if we could have a template manager of sorts that we could pass into
uv init
.Example
Here is how I think this should work.
~/.config/uv/templates
would be a good default.uv init
controls. For example, it might have the ruff config, the mypy config etc. The filename of these templates would be the template name.uv init
, we could pass in a template by doing something likeuv init --template <template_name>
. Instead of passing in a template name, we could also pass in a filepath to a template.Example:
Then, running
uv init example-project --template pytest --template ~/example/ruff.toml
would generate the following pyproject.toml (not sure what the best approach is for multiple templates):I think this would be a massive quality of life increase. Thank you for your consideration and all your effort into this amazing project.
The text was updated successfully, but these errors were encountered: