Skip to content

Commit d09c7d6

Browse files
committed
refactor: use blacken-docs to format Python code blocks in documentation files
1 parent ff2a61b commit d09c7d6

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

changelog.d/+7c470b70.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use blacken-docs to format Python code blocks in documentation files.

template/.pre-commit-config.yaml.jinja

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ repos:
5353
{%- endif %}
5454
additional_dependencies:
5555
- mdformat-gfm
56+
57+
- repo: https://github.com/adamchainz/blacken-docs
58+
rev: 1.20.0
59+
hooks:
60+
- id: blacken-docs
61+
additional_dependencies:
62+
- black==25.11.0

0 commit comments

Comments
 (0)