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
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -32,3 +32,8 @@ jobs:
|
|||
- name: Check if cog needs to be run
|
||||
run: |
|
||||
cog --check docs/*.rst
|
||||
- name: Check if blacken-docs needs to be run
|
||||
run: |
|
||||
blacken-docs -l 60 docs/*.rst
|
||||
# This fails if a diff was generated:
|
||||
git diff-index --quiet HEAD --
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue