-
Notifications
You must be signed in to change notification settings - Fork 717
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
Include Docstrings for ssg/build_yaml.py #12609
Include Docstrings for ssg/build_yaml.py #12609
Conversation
8 classes and 140 functions were reviewed and docstrings were provided. No code was changed, but some comments were removed since they were incorporated in docstrings text. Also some onei-line functions which are self-explained were skipped of including docstrings. Signed-off-by: Marcus Burghardt <[email protected]>
This PR is also related to #12606, which is part of the same initiative. |
Removed until we find a consensus regarding including or not methods information in classes Docstrings. Signed-off-by: Marcus Burghardt <[email protected]>
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.
Please make ensure we are consistent with the order of the optional args and their types.
Co-authored-by: Matthew Burket <[email protected]>
Co-authored-by: Matthew Burket <[email protected]>
Co-authored-by: Matthew Burket <[email protected]>
Co-authored-by: Matthew Burket <[email protected]>
Co-authored-by: Matthew Burket <[email protected]>
Signed-off-by: Marcus Burghardt <[email protected]>
Code Climate has analyzed commit 5c0ecd5 and detected 28 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 60.9% (0.0% change). View more on Code Climate. |
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.
Thanks!
/packit build |
Description:
8
classes and140
functions were reviewed and Docstrings were provided.No code was changed, but some comments were removed since they were incorporated in Docstrings text.
Also some one-line functions which are self-explained were skipped of including Docstrings.
Rationale:
Once the PR is merged, the Docstrings should also improve our documentation in https://complianceascode.readthedocs.io/en/latest/modules/ssg.html, making it easier for the community to consume and contribute to the ssg library.
Review Hints:
No code was changed, so no risk is expected from this PR. In some isolated cases I removed comments from functions because they were incorporated in Docstrings, so duplication was not necessary. But in general ensured no code changes.