-
Notifications
You must be signed in to change notification settings - Fork 20
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
Tolerate Sphinx extensions #14
Comments
One could take this a step further and allow piping the code into language-specific auto-formatters, like black for Python. |
Seems like this kind of approach could be used as a short-term fix: https://github.com/OCA/pylint-odoo/pull/66/files |
This was referenced Dec 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, rstfmt looks great and we'd like to use it in our project! CC @sk1p
In a first test, handling the formatting for Sphinx extensions like https://www.sphinx-doc.org/en/master/usage/extensions/doctest.html was a stumbling point.
How to reproduce
Format a document that uses the Sphinx doctest extension:
What happens
What should happen
Blocks with unknown directives are ignored. Possibly, they can trigger a warning. Possibly, there could be an interface to write formatters for new directives that could be installed as part of an extension that implements them in Sphinx.
The text was updated successfully, but these errors were encountered: