-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Config override key flag does not work for extend
option
#10035
Comments
This is an interesting usage of the new override system and should be supported. However, It may not have the desired result depending on your use case:
Overriding the CC: @AlexWaygood |
Ah I see -- so, I think this doesn't work because we currently apply the configuration overrides given in the I'm unlikely to have time to look at this in any more depth this week, unfortunately, but I'll work on this as soon as I'm able. Thanks for the report @ofek! |
I'm okay with a fix or literally any other way to define an |
Yeah, I'll have a think... If we decide that this kind of thing should be done via a separate flag, then we should probably explicitly reject trying to override |
+1 on this feature If that is any indication, when searching the doc I was also expecting a dedicated I suppose a tricky part could be extend chains: with |
Just for some more context, can someone explain to me how |
Are you implying that specifying multiple configuration files is implicitly an extend operation? If so, then I suppose there is no feature request here but rather a documentation update. |
I'm not sure! The configuration hierarchy is confusing and inheritance via extend is even more complicated. I'm asking for someone to try it, I guess, so we can understand what we're missing. |
Oh okay, I think we can support multiple configuration files on the command line. I originally intended for it to be that way, but I think it might have been cut from scope on the initial implementation. I'd be curious to hear if it would address your use-case to support merging multiple |
If you can have more than one config file, what happens when the ruff --config config1.toml --config config2.toml # config1.toml
extend = "config1_base.toml" # config2.toml
extend = "config2_base.toml" I guess this needs to be properly documented. Also, as a workaround for my own use-case, I template the ruff config and dynamically write a temporary file where I replace a placehold with the actual filepath to |
Example command:
The text was updated successfully, but these errors were encountered: