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

Adding pydoclint and properly format docstring #69

Merged
merged 11 commits into from
Aug 20, 2024
Merged

Adding pydoclint and properly format docstring #69

merged 11 commits into from
Aug 20, 2024

Conversation

adamamer20
Copy link
Collaborator

This PR adds pydoclint as pre-commit hook to ensure having a proper formatting of docstrings (crucial for docs) and correct parameter/return types

@adamamer20 adamamer20 self-assigned this Aug 20, 2024
@adamamer20 adamamer20 added the ci Changes to CI configuration files and scripts. label Aug 20, 2024
@adamamer20 adamamer20 added this to the 0.1.0 Alpha Release milestone Aug 20, 2024
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 2 lines in your changes missing coverage. Please review.

Files Patch % Lines
mesa_frames/abstract/space.py 0.00% 2 Missing ⚠️
Files Coverage Δ
mesa_frames/abstract/agents.py 89.59% <100.00%> (+0.49%) ⬆️
mesa_frames/abstract/mixin.py 100.00% <ø> (ø)
mesa_frames/concrete/agents.py 95.58% <100.00%> (ø)
mesa_frames/concrete/model.py 74.19% <100.00%> (-1.57%) ⬇️
mesa_frames/concrete/polars/agentset.py 86.10% <ø> (ø)
mesa_frames/types_.py 100.00% <100.00%> (ø)
mesa_frames/abstract/space.py 89.40% <0.00%> (ø)

@adamamer20 adamamer20 requested a review from rht August 20, 2024 14:16
@@ -11,23 +11,11 @@
class CopyMixin(ABC):
"""A mixin class that provides a fast copy method for the class that inherits it.

Attributes
----------
_copy_with_method : dict[str, tuple[str, list[str]]]
Copy link
Contributor

Choose a reason for hiding this comment

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

There are indeed quite a number of private attributes.

@rht
Copy link
Contributor

rht commented Aug 20, 2024

@EwoutH we should enable this for projectmesa/mesa as well.

@adamamer20 adamamer20 merged commit 1599ca0 into main Aug 20, 2024
7 checks passed
@adamamer20 adamamer20 deleted the pydoclint branch August 20, 2024 14:46
@EwoutH
Copy link
Member

EwoutH commented Aug 20, 2024

Looks interesting indeed!

@EwoutH
Copy link
Member

EwoutH commented Aug 20, 2024

Does it have a pre-commit hook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Changes to CI configuration files and scripts.
Projects
None yet
3 participants