Open
Conversation
updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.10](astral-sh/ruff-pre-commit@v0.15.9...v0.15.10) - [github.com/pre-commit/mirrors-mypy: v1.20.0 → v1.20.1](pre-commit/mirrors-mypy@v1.20.0...v1.20.1)
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates pre-commit hook versions for Ruff and mypy in the shared configuration to pick up the latest bug fixes and improvements from those tools. Sequence diagram for pre-commit hooks using updated Ruff and mypysequenceDiagram
actor Developer
participant Git as LocalGit
participant PreCommit as PreCommitFramework
participant RuffHook as RuffPreCommitHook_v0_15_10
participant MypyHook as MypyPreCommitHook_v1_20_1
Developer->>LocalGit: git commit
LocalGit->>PreCommit: Trigger configured hooks
PreCommit->>RuffHook: Run ruff-check
RuffHook-->>PreCommit: Report lint results
PreCommit->>RuffHook: Run ruff-format
RuffHook-->>PreCommit: Report format results
PreCommit->>MypyHook: Run mypy (with dateparser, types-dateparser)
MypyHook-->>PreCommit: Report type-check results
alt All hooks pass
PreCommit-->>LocalGit: Allow commit
LocalGit-->>Developer: Commit succeeds
else Any hook fails
PreCommit-->>LocalGit: Block commit
LocalGit-->>Developer: Commit rejected with errors
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #387 +/- ##
=======================================
Coverage 94.01% 94.01%
=======================================
Files 2 2
Lines 167 167
Branches 37 37
=======================================
Hits 157 157
Misses 4 4
Partials 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
updates:
Summary by Sourcery
Update pre-commit hook versions for linting and type-checking tools.
CI: