Add code snippet formatting in docstrings via Ruff#36262
Conversation
|
This might also remove the need for
Am I reading that correctly? |
You can check it by wrong-formating some of those :) |
This was made available [as part of v0.1.8 of the Ruff Formatter](https://astral.sh/blog/ruff-v0.1.8#formatting-code-snippets-in-docstrings). Adding this config option to the `ruff-format` pre-commit hook.
46eeff2 to
5992279
Compare
Nope just handles those directives in docstrings not in rST files. Maybe one day. |
hussein-awala
left a comment
There was a problem hiding this comment.
Great one! I was planning to test it once I have some time.
This was made available [as part of v0.1.8 of the Ruff Formatter](https://astral.sh/blog/ruff-v0.1.8#formatting-code-snippets-in-docstrings). Adding this config option to the `ruff-format` pre-commit hook. (cherry picked from commit e9ba37b)
This was made available as part of v0.1.8 of the Ruff Formatter. Adding this config option to the
ruff-formatpre-commit hook.