MNT: Remove unused imports from code base
See original GitHub issueWhen I open up some code here and there, my flake8
checker complains of unused imports. However, I don’t know whether they are done on purpose or not. There needs to be a clean-up campaign where sub-package maintainers weed out unused imports or put in a comment on why they are needed.
p.s. Weeding out unused variables in this same campaign is a plus.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How to remove unused imports in VSCode. - LinkedIn
Fix them on just SAVING the file, the easiest way. Follow these steps to setup settings in VS Code. Press [Command + ,...
Read more >Remove unused imports in code base. [#2768997] | Drupal.org
Remove unused imports in code base. ... Issue #2768997 by neerajskydiver: Remove unused import in code base.
Read more >Should a software engineer consciously remove any unused ...
Yes. Removing unused code is low-hanging fruit for cleaning up tech debt.
Read more >Docs 1.5.0 - Release notes for DIPY version 1.5 - DIPY
PR #2529: STYLE: Remove unused import statements. PR #2528: TEST: Remove legacy nose -related dead testing code.
Read more >How do I delete all unused imports in the active file with one ...
Current workaround is: click on unused import, CMD + . > Delete unused imports . enter image description here. Languages for which this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Once these are removed, we should add the code for unused import to the pycodestyle things we check.
Like @astrofrog, I like to order by line length within groups (I guess we’re OCD in the same way 😉), but I think PEP8 ordering should be respected whenever possible.