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

Ability to treat comments as code #1357

Closed
timothycrosley opened this issue Jul 31, 2020 · 2 comments
Closed

Ability to treat comments as code #1357

timothycrosley opened this issue Jul 31, 2020 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@timothycrosley
Copy link
Member

isort should allow treating all single line comments (or chosen single line comments) as code if that is the end users preference.

For example:

import b

# these are special imports that have to do with installing X plugin
import c
import a

by default isort would turn this into:

# these are special imports that have to do with installing X plugin
import a
import b
import c

with the new treat_all_comments_as_code option turned on it would become:

import b

# these are special imports that have to do with installing X plugin
import a
import c
@timothycrosley timothycrosley added the enhancement New feature or request label Jul 31, 2020
@timothycrosley timothycrosley added this to the 5.3.0 milestone Jul 31, 2020
@timothycrosley
Copy link
Member Author

This supersedes: #1338

@timothycrosley
Copy link
Member Author

This has been released with version 5.3.0 of isort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant