Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Remove all "import *" #466

Open
jisantuc opened this issue Oct 19, 2017 · 0 comments
Open

Remove all "import *" #466

jisantuc opened this issue Oct 19, 2017 · 0 comments

Comments

@jisantuc
Copy link
Collaborator

Problem Description

import *s are not stars, they're duds. They add needless complexity to parsing where imports come from. They make my head hurt. They make me sad.

Replication Steps

From the repository root:

$ ag -l "import \*"
django/publicmapping/redistricting/forms.py
django/publicmapping/redistricting/views.py
django/publicmapping/redistricting/tasks.py
django/publicmapping/redistricting/models.py
django/publicmapping/redistricting/management/commands/exportplans.py
django/publicmapping/redistricting/management/commands/removescoreconfig.py
django/publicmapping/redistricting/management/commands/numusers.py
django/publicmapping/redistricting/management/commands/database_i18n.py
django/publicmapping/redistricting/management/commands/setup.py
django/publicmapping/redistricting/management/commands/reaggregate.py
django/publicmapping/redistricting/admin.py
django/publicmapping/redistricting/config.py
django/publicmapping/redistricting/tests.py
django/publicmapping/reporting/views.py
django/publicmapping/reporting/urls.py

Expected Behavior or Output

I should be able to tell where any import is coming from by looking at the import list, or:

$ ag -l "import \*"
$
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant