Skip to content

Thoughts on a new display format for numpydoc lint and pre-commit hook findings #606

Closed
@stefmolin

Description

@stefmolin

The table output generated with tabulate can look like this when there is long content:

Image

The need to compile everything for the table to have consistent sizing also requires pre-commit to run serially. If we switch to a different format, we could have it run in parallel.

I was playing around with an alternate format just now and something like this would be a good start:

numpydoc/docscrape.py:302
in docscrape.NumpyDocString._parse_see_also.parse_item_name
  ES01 - No extended summary found
  PR01 - Parameters {'text'} not documented
  RT01 - No Returns section found
  SA01 - See Also section not found
  EX01 - No examples section found

numpydoc/docscrape.py:345
in docscrape.NumpyDocString._parse_index
  GL02 - Closing quotes should be placed in the line after the last
         text in the docstring (do not close the quotes in the same
         line as the text, or leave a blank line between the last
         text and the quotes)
  GL03 - Double line break found; please use only one blank line to
         separate sections or paragraphs, and do not leave blank
         lines at the end of docstrings
  SS01 - No summary found (a short summary in a single line should be
         present at the beginning of the docstring)
  ES01 - No extended summary found
  PR01 - Parameters {'content', 'section'} not documented
  RT01 - No Returns section found
  SA01 - See Also section not found
  EX01 - No examples section found

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions