Skip to content

Enable keyword-based exclusion of a single line from docsig checks #855

Description

@xqt

Enable keyword-based exclusion of a single line from docsig checks

Currently, docsig does not provide a reliable way to suppress a single diagnostic message on the exact line.

In particular, when a diagnostic is emitted on a decorator line, inline suppression comments such as # docsig: disable or # docsig: disable=SIG402 are not honored.

Proposed feature

Introduce a lightweight, explicit mechanism to exclude a single line from docsig validation.
For example:

@deprecated_signature(since='11.4.0')  # docsig: SIG402
def my_function():
    """This is my docstring.

   Ignore a single test.
   """   # docsig: SIG402

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions