-
Notifications
You must be signed in to change notification settings - Fork 312
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
Enable pydoclint #3077
Enable pydoclint #3077
Conversation
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Code Review Agent Run #9e84bdActionable Suggestions - 0Additional Suggestions - 1
Review Details
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3077 +/- ##
==========================================
- Coverage 92.59% 83.58% -9.01%
==========================================
Files 4 3 -1
Lines 54 195 +141
==========================================
+ Hits 50 163 +113
- Misses 4 32 +28 ☔ View full report in Codecov by Sentry. |
Changelist by BitoThis pull request implements the following key changes.
|
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.
@eapolinario There is a merge conflict. Otherwise, this looks good for us to get started.
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Code Review Agent Run #7693feActionable Suggestions - 0Additional Suggestions - 10
Review Details
|
* Enable pydoclint Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Regenerate baseline Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Regenerate baseline for real this time Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> --------- Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> Signed-off-by: lu00122 <lu001224@gmail.com>
Tracking issue
N/A
Why are the changes needed?
pydoclint
is a well known linter that will help bring flytekit coding standards up a notch.What changes were proposed in this pull request?
A few changes:
pydoclint
as a pre-commit hook.pydoclint-errors-baseline.txt
) to help catch issues going forward while having a path to resolving existing issuesi. this baseline file is regenerated in case a rule is fixed in a PR due to
--auto-regenerate-baseline
defaulting totrue
.Notice that the majority of the existing failures are a DOC301 according to the count of violations by type:
Here's a list of violation codes in the docs: https://jsh9.github.io/pydoclint/violation_codes.html
Keep in mind that ruff is in the process of implementing the pydoclint rules, so sometime in the future we will be able to just switch to that.
How was this patch tested?
Run
pre-commit run --all-files pydoclint
locally (after generating the baseline file)Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
Integration of pydoclint as a pre-commit hook for Google-style docstring standards, alongside implementation of a new Kubernetes StatefulSet Data Service plugin. The changes include configuration setup, baseline tracking for docstring violations (focusing on DOC301, DOC601/603, DOC101/103), environment variable support for secrets, and improved coroutine handling in type transformers. Features optimized cloud storage operations with configurable chunk sizes.Unit tests added: True
Estimated effort to review (1-5, lower is better): 5