Skip to content

False read . in code-block as sentence ending #353

@Borda

Description

@Borda

I have the following dostring, and seem like `` is not respected as code block

 """Return the proxy docstring so the ``.. deprecated::`` block is rendered."""

but ti is split as

"""Return the proxy docstring so the ``.

. deprecated::`` block is rendered.
"""

This is my hook details:

  - repo: https://github.com/PyCQA/docformatter
    rev: v1.7.7
    hooks:
      - id: docformatter
        language_version: python3.10
        additional_dependencies: [tomli]
        args: ["--in-place"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    freshThis is a new issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions