- Notifications
You must be signed in to change notification settings - Fork676
chore: convert to using relative imports#1728
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedDec 5, 2021 • edited by codecovbot
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by codecovbot
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #1728 +/- ##======================================= Coverage 92.02% 92.03% ======================================= Files 76 76 Lines 4790 4793 +3 =======================================+ Hits 4408 4411 +3 Misses 382 382
Flags with carried forward coverage won't be shown.Click here to find out more.
🚀 New features to boost your workflow:
|
a9cf620 to45f3959Compare This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
45f3959 to834677eCompareJohnVillalovos commentedDec 11, 2021
Note834677e is only a rebase with no functional changes. Had conflicts after another PR merged. Will work on fixing things in regards to comments later on today most likely. |
c2dca37 to9afb42fCompare7da5ac0 toc873c92Comparec873c92 to17ac7c1CompareIt was confusing having __version__.py as we were importing the__version__ variable from __version__.py into the top-level namespacewhile also having __version__.py. So depending where we were in theimport chain __version__ could refer to the module __version__.py orit could refer to the variable __version__
17ac7c1 to89981c6CompareSwitch to using relative imports to ensure that we are importing fromwithin our library.Also use the form: from foo import bar as barWhen we want to signify that we want the import to be re-exported.https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport
89981c6 to6b3e7c0CompareThis Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days. |
Uh oh!
There was an error while loading.Please reload this page.
First commit renames
gitlab/__version__.pytogitlab.version.pyto minimize confusion.Switch to using relative imports to ensure that we are importing from
within our library.
Also use the form:
from foo import bar as bar
When we want to signify that we want the import to be re-exported.
https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport