Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove * imports from __init__.py #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

osheamonn
Copy link
Collaborator

One of the main things I did here was remove all the of from x import * from the init.py files. Trying to run `bin/inference_on_gwnr_tools' I was getting a really obscure error related to importing matplotlib in a source file that wasn't used in that file, but importing matplotlib worked elsewhere. I think it's because the 'import *' in the init files means that the entire codebase becomes coupled, and import errors in unrelated parts of the code prop up whenever it's used.

Because of that I had to make sure that the correct imports were used in every file, I tried to do this by grepping pylint but I may have missed some errors.

I also relaxed the stringent requirements, I'm not sure what packages should have their versions restricted but some might need it.

@prayush prayush added the outdated This pull request is now outdated label Mar 23, 2022
@prayush prayush added the wontfix This will not be worked on label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outdated This pull request is now outdated wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants