-
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
Pep 753 #9969
Pep 753 #9969
Conversation
Reviewer's Guide by SourceryThis PR refactors the Sequence diagram for create_pyproject_from_package metadata handlingsequenceDiagram
participant Package
participant Factory
participant TOMLDocument
Factory->>Package: Get documentation_url
alt has documentation_url
Package-->>Factory: Return documentation_url
Factory->>TOMLDocument: Set documentation field
end
Factory->>Package: Get repository_url
alt has repository_url
Package-->>Factory: Return repository_url
Factory->>TOMLDocument: Set repository field
end
Factory->>Package: Get homepage
alt has homepage
Package-->>Factory: Return homepage
Factory->>TOMLDocument: Set homepage field
end
Factory->>Package: Get maintainers
alt has maintainers
Package-->>Factory: Return maintainers
Factory->>TOMLDocument: Set maintainers field
end
Factory->>Package: Get keywords
alt has keywords
Package-->>Factory: Return keywords
Factory->>TOMLDocument: Set keywords field
end
Class diagram for Package and Factory relationshipclassDiagram
class Package {
+documentation_url: str
+repository_url: str
+homepage: str
+maintainers: list
+keywords: list
+classifiers: list
}
class Factory {
+create_pyproject_from_package(package: Package) TOMLDocument
}
Factory ..> Package : uses
note for Factory "Refactored to use individual
if statements for metadata fields"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @dimbleby - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please expand the PR description to provide more context about which aspects of PEP 753 are being implemented and why these changes are necessary.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
companion to python-poetry/poetry-core#807
Summary by Sourcery
Chores: