cookie icon indicating copy to clipboard operation
cookie copied to clipboard

Add support for Ruff's docstring-code-format

Open blink1073 opened this issue 2 years ago • 7 comments

Ruff has a replacement for blacken-docs: astral.sh/blog/ruff-v0.1.8#formatting-code-snippets-in-docstrings.

In Jupyter Server we're skipping PC111 for now.

blink1073 avatar Dec 16 '23 12:12 blink1073

It doesn’t support .md or .rst files quite yet. It should soon.

henryiii avatar Dec 16 '23 13:12 henryiii

Ah, good call out, thanks!

blink1073 avatar Dec 16 '23 14:12 blink1073

~When it does support these file types, then this can replace blacken-docs, right?~ Answered.

https://github.com/astral-sh/ruff/issues/8237

nstarman avatar Apr 27 '24 21:04 nstarman