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

[FEATURE] pycln as module #231

Open
LimaBD opened this issue Jun 19, 2024 · 0 comments
Open

[FEATURE] pycln as module #231

LimaBD opened this issue Jun 19, 2024 · 0 comments
Labels
enhancement New feature or request feature New things

Comments

@LimaBD
Copy link

LimaBD commented Jun 19, 2024

I didn't find a way to use pycln as a module, it would be good if there was a way, (at least for me).

Illustrative example of this feature:

from pycln import remove_unused_imports

code = """
from os import path
import sys

a = 1
b = 2
c = a + b

print(c)
"""

modified = remove_unused_imports(code)

print(modified)
@LimaBD LimaBD added enhancement New feature or request feature New things labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New things
Projects
None yet
Development

No branches or pull requests

1 participant