Skip to content

[Python][Dev] Document the process to run numpydoc checks #32796

@asfimport

Description

@asfimport

In ARROW-15006 we are adding additional validation checks which are run during CI but the Python development documentation doesn't contain any instructions for running those checks locally. Adding instructions would likely save everyone time.

However, we actually have two separate ways to run the numpydoc checks locally:

  • archery lint --numpydoc (runs all checks)

  • archery numpydoc (runs all checks except except four we've disabled by default)

    And these two methods differ from how CI runs numpydoc which only runs the three checks (PR01, PR03, and PR10) we know currently pass.

    My thoughts so far are:

  • Having two similar but different ways of running numpydoc might be confusing

  • Ideally, new work should pass all numpydoc checks, not just those we run in CI. Otherwise we're just making future work for ourselves.

  • Giving developers an easy way to run just the checks we have enabled in CI would be good

     

Reporter: Bryce Mecum / @amoeba

Related issues:

Note: This issue was originally created as ARROW-17542. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions