https://github.com/agent-hellboy/find-unused-import
Tool to find unused imports this can be configured in CI/CD pipeline to avoid people to merge code having unused imports
https://github.com/agent-hellboy/find-unused-import
ast code-quality find-unused-import hacktoberfest python-library
Last synced: about 1 month ago
JSON representation
Tool to find unused imports this can be configured in CI/CD pipeline to avoid people to merge code having unused imports
- Host: GitHub
- URL: https://github.com/agent-hellboy/find-unused-import
- Owner: Agent-Hellboy
- License: mit
- Created: 2022-01-07T06:20:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T08:12:06.000Z (about 3 years ago)
- Last Synced: 2025-01-23T08:19:57.652Z (3 months ago)
- Topics: ast, code-quality, find-unused-import, hacktoberfest, python-library
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
find_unused_import
==================
Yet another solution to **find_unused_import**General Info
============
- My solution to **find_unused_import** problem of python.
- One day I got an idea to recursively iterate over the ast tree and made this.
- Actually, the iteration should be handled with ast.NodeVisiter (which is used by autoflake8 and several others to remove unused import ) which I was not awareof.
- The whole point of making this is using a naive approch to solve the find_unused_imports problem of python
- I have zero to minimal design experience so any suggestions on design are welcome.
- I hope I must have missed to parse some node from ast Like node related to Match of latest python release
- Play around with it and help me improve it.
How to Use
==========
- Install the package using `sudo python setup.py install` and run
- find_unused_imports --name=file_path