Skip to content

Is it possible to skip specific rules for specific functions? #636

@billbrod

Description

@billbrod

Hi all. Is it possible to skip specific rules for specific functions?

I know that it's possible to use exclude to skip all numpydoc validation for matching functions, and that it's possible to use inline comments skip checking of specific rules for specific functions on a case-by-case basis. Is there any intermediate configuration possible? I would like to skip checking EX01 on all private functions (those starting with _), but validate all other rules on those functions (and EX01 on all functions that don't start with _).

(I could manually add inline comments for each private function, but it feels like there must be a better way.)

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