Skip to content

docs: mention tools for doctests formatting in FAQ#5010

Closed
thakoreh wants to merge 1 commit into
psf:mainfrom
thakoreh:docs/mention-doctest-formatting-tools
Closed

docs: mention tools for doctests formatting in FAQ#5010
thakoreh wants to merge 1 commit into
psf:mainfrom
thakoreh:docs/mention-doctest-formatting-tools

Conversation

@thakoreh
Copy link
Copy Markdown

Summary

This PR addresses issue #3083 by adding a new FAQ entry that documents Black's limitation with doctest formatting and mentions alternative tools users can use.

Changes

Motivation

Users often expect Black to format doctests within docstrings, but this is not currently supported. This FAQ entry helps users understand this limitation and provides actionable alternatives.

Closes #3083

Add a new FAQ entry addressing Black's limitation with doctest formatting.
Mention alternative tools (docformatter, doctestfmt) that users can use
alongside Black to format doctests in docstrings.

Closes psf#3083
@thakoreh thakoreh closed this Feb 27, 2026
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

Successfully merging this pull request may close these issues.

Documentation: mention tools that can do doctests formatting

1 participant