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
apply different settings in different subdirectories #1849
Comments
This is a recent enhancement to Line 273 in c5e8fa7
Line 265 in c5e8fa7
isort directory --resolve-all-configs --config-root directory and that should do the trick.
I'll add separate documentation about this in the config files section. Hope this helps and let me know if there are any more concerns. ~Aniruddha |
Thanks a lot for that feature! It seems to work pretty good in general, but it doesn't seem to account for
Files like *.cairo don't get reformatted. |
Thanks @murcake for pointing this out! I'll have a look and will work to remediate this in the coming releases. One other thing, acting on your question, I added documentation regarding this feature, you can check it out here: https://github.com/PyCQA/isort/pull/1850/files, if you think that the added documentation lacks in anyway do let me know. |
The documentation is good) |
Hi, I have a project-wide isort configuration in
pyproject.toml
. However, in a certain subdirectory I'd like to have different settings. I've created a.isort.cfg
file in that directory with the desired settings.I expect that running
isort .
in the root directory would result in formatting files in that subdirectory according to the rules in the.isort.cfg
.I get those files formatted according to the rules in
pyproject.toml
.What can I do to achieve the desired?
The text was updated successfully, but these errors were encountered: