-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Seems pycln is not able to remove submodule imports that are not used even with the --all flag.
To Reproduce
- Take this code snippet:
# test_api/a.py
value = 1
# test_api/b.py
value = 2
# test_api/__init__.py
# test.py
import test_api.a
import test_api.b
print(test_api.a.value)
-
Run this Pycln command:
pycln --all test.py
-
Error traceback or unexpected output (if present):
No imports are removed
Expected behavior:
- Description:
Would expect import test_api.b to be removed
- Expected output (if present):
1 test_api.b should be removed
Environment:
- Python Version: 3.10.6
- Pycln Version: 2.5.0
- OS Type: mac0S m1
hmol
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working