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

Improve docstring quality and consistency #326

Merged
merged 6 commits into from
Jan 8, 2025
Merged

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Jan 5, 2025

This PR enhances clarity and uniformity of docstrings across the codebase by removing unnecessary type hints, adopting imperative mood, and adding missing documentation where needed. This update also introduces a pydocstyle check in the ruff configuration to enforce these standards in the future.


📚 Documentation preview 📚: https://jaxsim--326.org.readthedocs.build//326/

@flferretti flferretti self-assigned this Jan 5, 2025
@flferretti flferretti force-pushed the update_docstrings branch 2 times, most recently from 356a33d to 174fc48 Compare January 5, 2025 17:57
@flferretti flferretti marked this pull request as ready for review January 6, 2025 12:15
@flferretti flferretti requested a review from xela-95 as a code owner January 6, 2025 12:15
Copy link
Member

@xela-95 xela-95 left a comment

Choose a reason for hiding this comment

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

Thanks @flferretti !! I think this could be useful to improve the codebase documentation, we shall just check if this linter is excessively pedantic and adjust the rules to ignore accordingly.

@flferretti flferretti force-pushed the update_docstrings branch 3 times, most recently from ed27b29 to 0eefef5 Compare January 8, 2025 09:19
@flferretti
Copy link
Collaborator Author

@CarlottaSartore could you please check this when you have time? Thanks!

@flferretti flferretti enabled auto-merge January 8, 2025 10:40
@flferretti flferretti merged commit 96523f0 into main Jan 8, 2025
24 checks passed
@flferretti flferretti deleted the update_docstrings branch January 8, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants