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

Feature/Enforce docstring code coverage. #271

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

KaleabTessera
Copy link
Contributor

What?

Added interogate package to check and enforce docstring code coverage.

Why?

Better quality code documentation.

How?

Extra

Currently, the pre-commits will fail if docstring code coverage is less than 54.4% (our current docstring coverage is 54.5%). This will prevent new code without docstrings from being committed and we can increase this percentage as we go along. @arnupretorius Sounds good?

@KaleabTessera KaleabTessera changed the base branch from main to develop July 12, 2021 10:31
@KaleabTessera KaleabTessera reopened this Jul 12, 2021
@KaleabTessera KaleabTessera self-assigned this Jul 12, 2021
@KaleabTessera KaleabTessera added the documentation Improvements or additions to documentation label Jul 12, 2021
Copy link
Contributor

@DriesSmit DriesSmit left a comment

Choose a reason for hiding this comment

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

Thanks, @KaleabTessera 🔥 This will definitely help us save time in the long run.

Copy link
Collaborator

@arnupretorius arnupretorius left a comment

Choose a reason for hiding this comment

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

Thanks @KaleabTessera! 👍

@KaleabTessera KaleabTessera merged commit 1d9c3c3 into develop Jul 12, 2021
@KaleabTessera KaleabTessera deleted the feature/enforce-doc-strings branch July 12, 2021 11:34
@arnupretorius
Copy link
Collaborator

Sound good to me 👍 Will it check the structure though? E.g. a description of the function, plus each arg, and the return? Or is it only checking that each function has """some text"""?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants