ty icon indicating copy to clipboard operation
ty copied to clipboard

Support `extend` configuration field (like `ruff`) for config inheritance

Open aeroyorch opened this issue 2 months ago • 2 comments

First of all, thanks for ty!

I’d like to ask whether ty plans to support an extend configuration field, similar to the one provided by ruff, to allow explicit configuration inheritance.

This would be helpful for sharing common configuration parameters in monorepositories with multiple pyproject.toml files, while keeping overrides explicit and localized.

aeroyorch avatar Dec 20 '25 23:12 aeroyorch

I'll add this as a sub issue to https://github.com/astral-sh/ty/issues/175 as it is about the same functionality -- some way to share configurations.

@aeroyorch could you say a bit more about your project layout? More specifically, where do you want to define the shared configuration and where would you use it (projects of the same workspace or across workspaces?)

MichaReiser avatar Dec 22 '25 12:12 MichaReiser

I'll add this as a sub issue to #175 as it is about the same functionality -- some way to share configurations.

@aeroyorch could you say a bit more about your project layout? More specifically, where do you want to define the shared configuration and where would you use it (projects of the same workspace or across workspaces?)

In my case, this is a typical uv workspace with several packages and a root pyproject.toml. Maybe, supporting configuration inheritance or extension in ty, similar to ruff, would help keep configuration patterns consistent across both tools.

aeroyorch avatar Dec 22 '25 15:12 aeroyorch