-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
Suppress sections inside functions? #1604
Comments
@timothycrosley should I infer from the |
@bryevdv, yes that's correct. There aren't currently separate config options for nested / unested imports. This was somewhat intentional as it keeps everything simple, and so far there hasn't been any requests to do so. However, I think it makes perfect sense to at minimum allow not having headers for nested import sections. |
This is now fixed in develop and will be released in the 5.7.0 release of isort. Thanks! ~Timothy |
Trying to update Bokeh to use isort 5 and running in to an issue where isort now wants to add section headers inside functions:
We really only want section headings to ever appear once, at the top, module level, and not for every import inside a function. Is there a way to disable this behavior? I did spend time looking over the isort options documentation as well a GIS and GH issue search but did not see anything relevant.
The text was updated successfully, but these errors were encountered: