Skip to content

Validate public API docstrings using Ruff #1971

@VeckoTheGecko

Description

@VeckoTheGecko

By validate docstrings I mean:

  • Check that the docstring format is being adhered to
  • Check that all parameters in the function are available in the docstring
  • Perhaps check something or other about the type information?

Ruff rules that might be of interest:

Though note that these rules don't necessarily have feature parity with the original packages (e.g., pydoclint)

The goal isn't to enable all these rules and have 100% compliance - some of these rules are just a headache. Let's pick rules that help with our goals.

The docstrings should also focus on the public API of Parcels. The private API does not have to adhere to the numpy format of docstrings, and sometimes functions don't need docstrings at all since the code is self-documenting via good variable names and easy-to-follow code

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Backlog

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions