Skip to content

Conversation

adamamer20
Copy link
Member

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

Successfully merging this pull request may close these issues.

Automatic check of docstring parameters/returns based on function/class signature via pre-commit hook (pydoclint)
3 participants