mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Apply Black to code examples in documentation, refs #1718
Uses blacken-docs. This has a deliberate error which I hope will fail CI.
This commit is contained in:
parent
40ef8ebac2
commit
36573638b0
5 changed files with 81 additions and 41 deletions
|
|
@ -144,6 +144,15 @@ If any of your code does not conform to Black you can run this to automatically
|
|||
All done! ✨ 🍰 ✨
|
||||
1 file reformatted, 94 files left unchanged.
|
||||
|
||||
.. _contributing_formatting_blacken_docs:
|
||||
|
||||
blacken-docs
|
||||
~~~~~~~~~~~~
|
||||
|
||||
The `blacken-docs <https://pypi.org/project/blacken-docs/>`__ command applies Black formatting rules to code examples in the documentation. Run it like this::
|
||||
|
||||
blacken-docs -l 60 docs/*.rst
|
||||
|
||||
.. _contributing_formatting_prettier:
|
||||
|
||||
Prettier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue