Skip to content

request: harmonise docstrings #198

Description

@nelimee

Contributor License Agreement (CLA) signature

  • A CLA signature is requested for any first contribution. Further information can be found in our contributing guidelines.

Motivation

The different deltakit sub-packages come from different sources that had different standards w.r.t., docstring formatting.

Docstrings should follow a unique and well-defined formatting standard all across the deltakit code base.

Proposed solution

Use the Google Sphinx style without types in docstrings (because we require correct typing, so the types in docstrings are duplicated information that will eventually be outdated).

  • Use automated tools in CI that check that docstrings are correctly formatted.
  • Add these tools to the pre-commit environment.

Among the interesting tools:

Potential alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    devChanges that affect development tools/configuration (e.g. pixi, sphinx, pytest, mypy, ruff, CI)documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions