Repository navigation
docs: convert docstrings to Google style in parser_tools and component (#1072) - #1749
AhmadBilalDSA wants to merge 29 commits into
Conversation
|
This pull request did not pass quality checks and AI use is suspected. Please review Contribute and make any necessary amendments. |
|
Profile summary: Full profile |
Documentation build overview
36 files changed ·
|
|
Hi @stevepiercy @niccokunzmann, I have added the changelog entry to resolve the changelog check. Regarding the bot tag: this PR is strictly scoped to converting docstrings in Please let me know if you would like any adjustments to the wording or style. |
stevepiercy
left a comment
There was a problem hiding this comment.
Please revert all section headings of Args back to Parameters. See Docstring structure and the note under Parameters for an explanation. Thank you!
angatha
left a comment
There was a problem hiding this comment.
Just a small note: You wrote "Fixes #xxx". That would close the Issue once th PR is merged. Since the issue is (most likely) not done with this, use "See #xxx" instead. That will link the issue but does not close it.
6156865 to
b3d3465
Compare
|
Thanks for the feedback @stevepiercy and @angatha Reverted all Args: headings back to Parameters: across parser_tools.py and cal/component.py per the documentation guidelines. Updated the PR description from Fixes #1072 to See #1072. Formatted with ruff to ensure clean CI passing. Verified all unit tests pass locally with pytest." |
|
@AhmadBilalDSA your edit to the description is worse. Please change it as @angatha directed, and see https://github.com/collective/icalendar/blob/main/.github/pull_request_template.md?plain=1#L14-L35 for instructions. |
stevepiercy
left a comment
There was a problem hiding this comment.
@AhmadBilalDSA thanks for your first contribution to icalendar! While reviewing your changes, I found old things that also needed to be addressed that were overlooked. Would you please take care? Thank you!
|
Hi @stevepiercy @angatha,
|
|
@stevepiercy @angatha All requested changes have been addressed:
|
|
@AhmadBilalDSA do you need assistance with the style guide? |
|
@AhmadBilalDSA do you want to proceed with this? |
|
@angatha Since we did not get a response, I would ask you to make a decision: Would you like to merge your suggestions and merge the PR or would you like to close it? In any case, we can open it again and the code is not lost. |
|
Hi @angatha @nicokunzmann, apologies for the delay! I'm actively working on resolving the remaining requested changes today so we can get this merged. Thanks for stepping in to fix parts of it. |
|
Thanks for the reply. I already added my changes. You may give them a review. |
|
Hi @angatha @nicokunzmann, I've updated the docstrings in parser_tools.py and component.py to follow Google style, pulled in the latest changes from main, and ensured all checks pass. Ready for review! |
|
Theres still #1749 (comment) from @stevepiercy. Do you know how to address that? |
|
I will review this after Nov 1. I have a deadline. There's still some things I'd like to clean up. Thanks for your patience. The Parameters were not rendering correctly, but do now. This is good. I'm not sure whether the signature can be improved. In the Some guidance from this explanation might be helpful to determine whether it's possible. @AhmadBilalDSA what do you think? Is it possible to improve how the signature renders? Please let us know. Thank you! |
stevepiercy
left a comment
There was a problem hiding this comment.
I have a couple of questions, and the rest are suggestions for your consideration. Please let me know. Thank you!
|
I respect your suggestions, let me know what are the changes you wanted me to do? I'll do that 100% to keep the line and code clean. |
|
There is a merge conflict. Can you please adress that? |
|
Right now, on a phone, I'll take care of that conflict once on my machine. |
|
@AhmadBilalDSA long phone call? 😉 |
Prompt: Apply the remaining review suggestions for Component.walk signature rendering, the set_inline encode flag, default value notes, and the change log entry. Model: DeepSeek V4.1 Flash Free via opencode. Output: this commit.
Prompt: Resolve the docstring conflict in Component._encode and Component.walk after syncing with upstream main. Model: DeepSeek V4.1 Flash Free via opencode. Output: this merge commit.
Prompt: Apply the remaining reviewer feedback on parameter ordering, required markers, walk select description, and the change log wording. Model: DeepSeek V4.1 Flash Free via opencode. Output: this commit.
Linked issue
Description
Converts the docstrings in
src/icalendar/parser_tools.pyandsrc/icalendar/cal/component.pyto Google style withParametersandReturnssections, following the project style guide. Parameters are listed required-first and alphabetically within each group, defaults are documented, andwalknow renders correctly with explicit type hints.Checklist
Additional information
Local checks: 22,367 tests passed (9 pre-existing Windows newline failures),
ruff checkandruff format --checkclean, and theComponent.walksignature andselectdescription render in the built API docs.