Skip to content
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

How to separate from imports and import imports into distinct sections? #2380

Open
dule1322 opened this issue Mar 5, 2025 · 1 comment
Open
Labels
question Further information is requested

Comments

@dule1322
Copy link

dule1322 commented Mar 5, 2025

I've tried using lines_between_types but this parameter seems to have no effect. I've also tried using lines_between_sections but this separates imports into separate sections depending on if the imported module is std lib, 3rd party lib, or a project level module, but it groups their from imports and import imports together. Is there any way I can achieve this?

@staticdev
Copy link
Collaborator

staticdev commented Mar 7, 2025

Dear @dule1322, this is not an usual way to do it and I would recommend against it unless you havê a very good reason. The other separations you mentioned are recommended by multiple style guides and are industry standards.

@staticdev staticdev added the question Further information is requested label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants