Skip to content

leverage sphinx config info to improve parsing #22

@drammock

Description

@drammock

@lagru I tried docstub on MNE-Python with the following results:

6241 matched annotations
511 grammar violations
1972 unknown doctypes

Two ideas for improvement:

  • I think a lot of the grammar violations could be avoided by reading the package's conf.py and looking at numpydoc_xref_ignore (for us, this includes things like "instance of", "shape", "n_channels", "n_times", etc)
  • I think a lot of the unknown doctypes could be resolved by looking at numpydoc_xref_aliases and/or leveraging intersphinx mappings.

This is something I'd be willing to work on (though maybe not right away), if you think it's in-scope for docstub. WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or functionalitymetaOrganization or planning

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions