We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#|
Currently, running a python formatter such as black on a qmd file destroys the comment pipe.
This code block
#| echo: true print("foo")
To
# | echo: true print("foo")
By auto formatting.
Perhaps the Quarto extension should protect the comment pipe as follows before letting the formatter run.
# #| echo: true print("foo")
The text was updated successfully, but these errors were encountered:
Related issue and discussion in black repo: psf/black#3557
Sorry, something went wrong.
The same behaviour with jupyter ipynb and autopep8, using yapf as formater doesnt change #| comments
autopep8
yapf
Black developers moved the discussion here psf/black#3668
A quick hack to exempt #| from autoformatting when using autopep8 - disable E265 - Format block comments.
E265 - Format block comments.
With the following config in Vscode :
"python.formatting.autopep8Args": [ "--ignore=E302,E265" ],
the #| is unchanged for me.
I used the recipe from here visual studio code - vscode python formatting autopep8 disable E266 - Stack Overflow
No branches or pull requests
Currently, running a python formatter such as black on a qmd file destroys the comment pipe.
This code block
To
By auto formatting.
Perhaps the Quarto extension should protect the comment pipe as follows before letting the formatter run.
The text was updated successfully, but these errors were encountered: