move pyi generation to initialize and add asserts on pyi contents to publish step#6063
Conversation
CodSpeed Performance ReportMerging #6063 will not alter performanceComparing Summary
|
Greptile SummaryThis PR fixes a critical build issue where Key changes:
The workflow verification will catch any future regressions where Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub Actions
participant UV as UV Build Tool
participant HB as Hatch Build Hook
participant HL as Hatchling
participant PYI as PYI Generator
GH->>UV: uv build
UV->>HL: Start build process
HL->>HB: Call initialize() hook
HB->>HB: Check marker file exists
alt Marker exists
HB-->>HL: Skip generation
else Marker doesn't exist
HB->>HB: Delete existing .pyi files
HB->>PYI: Generate .pyi files
PYI-->>HB: .pyi files created
HB->>HB: Touch marker file
HB-->>HL: Ready to build
end
HL->>HL: Package wheel with .pyi artifacts
HL-->>UV: Wheel created
UV-->>GH: Build complete
GH->>GH: Verify .pyi files in wheel
alt .pyi files found
GH->>GH: Verification passed
GH->>UV: uv publish
UV-->>GH: Published to PyPI
else .pyi files missing
GH->>GH: Exit with error
end
|
Greptile's behavior is changing!From now on, if a review finishes with no comments, we will not post an additional "statistics" comment to confirm that our review found nothing to comment on. However, you can confirm that we reviewed your changes in the status check section. This feature can be toggled off in your Code Review Settings by deselecting "Create a status check for each PR". |
No description provided.