Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore doctest comments #171

Open
stinodego opened this issue Feb 14, 2023 · 0 comments
Open

Add option to ignore doctest comments #171

stinodego opened this issue Feb 14, 2023 · 0 comments

Comments

@stinodego
Copy link

stinodego commented Feb 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant