Last active
March 11, 2026 22:11
-
-
Save 8Observer8/406e02e5d0f71b5786abc6e09e20530d to your computer and use it in GitHub Desktop.
How to sort imports and find unused packages in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To sort packages in your project directory: | |
| ``` | |
| pip install isort | |
| cd your_project_directory | |
| isort . | |
| ``` | |
| To detect unused packages in your project directory: | |
| ``` | |
| pip install pyflakes | |
| cd your_project_directory | |
| pyflakes . | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment