-
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
v0.1.6: Overriding sub-setting category nulls other inherited settings (#4348) #9872
Comments
Yeah, I think this should probably be considered a bug. |
Hi, I see that the PR is approved and checks are green. What would be the ETA on this bugfix delivery? |
@LTourinho -- It's technically a breaking change, so it will go out in v0.3. |
@LTourinho -- Sorry for the delay, we decided to defer this to v0.4 because we need to figure out a way to allow extended configs to unset these. |
No problem. Is the suggestion of setting to an "empty" object too bad in that regard? (The comment I made on the PR) |
Hi @charliermarsh, as the PR was closed, what are the plans on fixing this issue? |
Sorry that was not intentional. I cleaned up my stale branches and thought it's safe to delete any branch starting with |
Thanks Micha, I meant to ask about that too :) |
Hi guys, is there a reason this was postponed to 0.5? No agreement on how to unset values? |
There was no specific reason other than time constraints. We didn't want to block the 0.4 release by making this decision. |
0.4 was focused on the parser, we punted other breaking changes to 0.5 which we expect to release in the next few weeks. |
This comment was marked as outdated.
This comment was marked as outdated.
Hi, I see that the previous solution pull request was closed. Is there no alternatives? Is this being picked up in any way? |
Unfortunately, I know of no alternative. We aren't actively working on this right now but are open to ideas. As little as I like that, a short-term solution could be an |
Could there be a different keyword? E.g.: merge-into = "../.base_ruff.toml" Then the breaking functionality would only happen to those who explicitly use the new keyword. |
I would prefer not to but I won't rule it out. Either way, deciding on adding a different extension strategy isn't something we want to do lightly because it adds a lot of complexity and also makes it harder for users to understand what's happening. |
|
Very similar to the issue described in #4348. I have a root dir with a file that looks a bit like:
proj/.ruff.toml:
proj/subdir/.ruff.toml:
Using a command such as ruff proj/subdir/<some_file> returns me an error like:
Which means that isort.sections is being completely overwritten, when I expected to only overwrite the value of "same_subcomp". I can also confirm that the sorting of imports is not behaving as expected, as it will put numpy in the middle of the third party, when I want it to have its own block.
If this is the intended behavior, which I assumed it wasn't given issue #4348, is there a simple way I can achieve my intended behavior without copying the definition of common_pkgs to the .ruff.toml in every subdir?
Thanks in advance.
The text was updated successfully, but these errors were encountered: