-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
create valid PEP508 string for git dependencies with ssh (#1697) #1799
Conversation
@@ -1,3 +1,5 @@ | |||
from poetry.vcs import git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from poetry.vcs import git | |
from ...vcs import git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @matemax,
I'm not a big fan of relative imports. "Explicit is better than implicit." and is better to read. Absolute imports are also used (most if the time) in the poetry code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @finswimmer ,
It is a suggestion. I try use these code for me and noticed relative and not relative import in one file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rule I have personally is if the import comes from the same module/package, it should be a relative import otherwise it should be an absolute import. An example of this is https://github.com/python-poetry/poetry/blob/master/poetry/masonry/builders/builder.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes: #1697
Pull Request Check List
This is just a reminder about the most common mistakes. Please make sure that you tick all appropriate boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!