Skip to content

Add option to ignore doctest comments #171

@stinodego

Description

@stinodego

Some of my doctests include a # doctest: +SKIP marker. These markers do not show up in the published docs.
However, if these markers exceed the black line length, the line will be reformatted.

This leads to an undesirable situation where the docs will contain code that would fit on one line just fine, but are broken up anyway.

I would love a setting that allows me to tell blackdoc to ignore comments that start with doctest: when reformatting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions