Skip to content

Commit 610b058

Browse files
Update .pre-commit-config.yaml
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
1 parent 189ab92 commit 610b058

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ repos:
130130
rev: v1.12.1
131131
hooks:
132132
- id: blacken-docs
133+
# --skip-errors is added to allow us to have python syntax highlighting even if
134+
# the python code blocks includes jupyter specific additions such as % or !
135+
# See https://github.com/asottile/blacken-docs/issues/127 for an upstream
136+
# feature request about this.
133137
args: [--target-version=py39, --skip-errors]
134138

135139
# Docker hooks do not work in pre-commit.ci

0 commit comments

Comments
 (0)