Skip to content
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

Merged
merged 8 commits into from
Nov 25, 2024

Conversation

marcusburghardt
Copy link
Member

Description:

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 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.

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]>
@marcusburghardt marcusburghardt added the Documentation Update in project documentation. label Nov 14, 2024
@marcusburghardt marcusburghardt added this to the 0.1.76 milestone Nov 14, 2024
@marcusburghardt marcusburghardt changed the title Include docstrings for ssg/build_yaml.py Include Docstrings for ssg/build_yaml.py Nov 14, 2024
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@marcusburghardt
Copy link
Member Author

This PR is also related to #12606, which is part of the same initiative.

@Mab879 Mab879 self-assigned this Nov 14, 2024
Removed until we find a consensus regarding including or not methods
information in classes Docstrings.

Signed-off-by: Marcus Burghardt <[email protected]>
Copy link
Member

@Mab879 Mab879 left a 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.

marcusburghardt and others added 6 commits November 21, 2024 14:42
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]>
Copy link

codeclimate bot commented Nov 21, 2024

Code Climate has analyzed commit 5c0ecd5 and detected 28 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 28

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.

Copy link
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Mab879
Copy link
Member

Mab879 commented Nov 22, 2024

/packit build

@Mab879 Mab879 merged commit 2c32484 into ComplianceAsCode:master Nov 25, 2024
104 of 105 checks passed
@marcusburghardt marcusburghardt deleted the docstrings_build_yaml branch November 25, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Update in project documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants