Skip to content

Ignore specific functions #455

@HealthyPear

Description

@HealthyPear

The issue's subject is somewhat general, but my particular use case is that of a script.

Usually, we write a script as,

"""Module docstring"""

import bla

def main():

    # do stuff

if __name__ == "__main__":

    main()

I am using numpydoc via its Sphinx extension and I get

XXX.main:GL08:The object does not have a docstring

Technically, yes, it should have one, but it would be the same as the module dosctring in this case.

I don't know if there is any kind of convention about this particular case.

If there isn't, is there a way I can tell the checker to ignore e.g. the main function of a script?

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