Skip to content

D403 does not trigger for a single-word docstring that ends with a period #10775

@jbmoorhouse

Description

@jbmoorhouse

Keywords searched for

D403 -> Potentially related to #2989

Ruff version

0.3.0

Issue

For a docstring with one word (admittedly not a typical docstring 😉), if the word is not capitalised and there is no fullstop, the correct errors are raised

image

However, when adding a full stop, D403 is suppressed/not raised

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocstringRelated to docstring linting or formatting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions