Skip to content

Commit

Permalink
Matched blacken-docs config between ci and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed May 6, 2024
1 parent dba0504 commit f1593fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repos:
additional_dependencies:
- black==24.2.0
files: 'docs/.*\.txt$'
args: ["--rst-literal-block"] # match the invocation in docs/Makefile
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
Expand Down
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ spelling:
@echo "Check finished. Wrong words can be found in " \
"$(BUILDDIR)/spelling/output.txt."

# The invocation should match the one in .pre-commit-config.yaml
black:
@mkdir -p $(BUILDDIR)/black
find -name "*.txt" -not -path "./_build/*" -not -path "./_theme/*" \
Expand Down

0 comments on commit f1593fc

Please sign in to comment.