uv icon indicating copy to clipboard operation
uv copied to clipboard

Feature Request: `extend` config option

Open jvacek opened this issue 1 year ago • 2 comments

The usecase for us is that we share a lot of configs among multiple repositories. We track the "shared" configuration separately to our codebases, and the individual repos pull that as a submodule, and extend from it in pyproject.toml. If we need to do major changes like changing our extra-index address for example, this would help us do that more efficiently.

Essentially, I'd appreciate having something like ruff's extend directive available for uv's config. None of the additional extend-[...] options are really relevant here in my opinion, as there aren't any arrays to extend in uv's config as far as I can tell.

This already works great for us with ruff and also pyright, and while uv requires substantially less configuration, would still be nice to have it work similarly.

jvacek avatar Jul 30 '24 11:07 jvacek

Heya, is there any chance this can get some priority? Would help us roll out uv in our org :)

jvacek avatar Oct 22 '24 12:10 jvacek

Given the lack of additional interest and the amount of work we have on our plate right now, it seems unlikely that we can devote time to this in the near future. Sorry.

zanieb avatar Oct 22 '24 12:10 zanieb

Would it be an idea to rethink extend to be usable anywhere out of box? ATM its implemented for some parts like [tool.ruff], but it doesn't work for [tool.ruff.lint].

For example to keep our monorepo CI setup DRY we use include in combination with extends.

Korben11 avatar May 29 '25 09:05 Korben11