You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using extend to extend the base configuration from a parent directory, then override isort.required-imports. But as soon as I override isort.required-imports, other settings under isort section from the parent configuration are lost. I was expecting to only override the sub-setting I specified and inherit the rest.
For reproducing the issue, I have the following tree:
When I run ruff check --fix **/**, ruff does not split my_utils and other_utils imports, unless I also add forced-separate = ["my_utils"] to root/subdir/.ruff.toml.
(I can also verify this behavior using --show-settings)
The text was updated successfully, but these errors were encountered:
Problem description
I'm using
extend
to extend the base configuration from a parent directory, then overrideisort.required-imports
. But as soon as I overrideisort.required-imports
, other settings underisort
section from the parent configuration are lost. I was expecting to only override the sub-setting I specified and inherit the rest.For reproducing the issue, I have the following tree:
root/.ruff.toml
hasroot/subdir/.ruff.toml
hasroot/subdir/a.py
hasWhen I run
ruff check --fix **/**
, ruff does not split my_utils and other_utils imports, unless I also addforced-separate = ["my_utils"]
toroot/subdir/.ruff.toml
.(I can also verify this behavior using
--show-settings
)The text was updated successfully, but these errors were encountered: