Skip to content

Use and enforce numpydoc style for docstrings #213

Open
@eriknw

Description

@eriknw

As we write and update more docstrings, I think it would be helpful to specify what is expected and to do some checks in CI (and git pre-commit).

Like other libraries in the PyData ecosystem, I think we should rely heavily on the NumPy-style docstrings:

We can even use velin to help enforce this and identify common mistakes:

Here's an example of velin being used as a git pre-commit:

We could also look to align more closely to PEP 257 and its tooling:

Pandas also has really good guidance for docstrings:

xref: #169 and #198

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprove or add to documentationgood first issueClearly described and easy to accomplish. Good for beginners to the project.good second issueClearly described, educational, but less trivial than "good first issue".hygieneImprove code quality and reduce maintenance overhead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy