question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MNT: Remove unused imports from code base

See original GitHub issue

When 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
astrofrogcommented, Sep 15, 2018

Once these are removed, we should add the code for unused import to the pycodestyle things we check.

3reactions
drdavellacommented, Sep 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found