Skip to content

Commit

Permalink
build: update blacken-docs dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Aug 24, 2023
1 parent 1f494bf commit d041574
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
poetry install --no-interaction
- name: Check notebook formatting
run: |
poetry run blacken-docs --check book/notebooks/*.md
poetry run blacken-docs book/notebooks/*.md
# Also tests the notebooks thanks to the assertions contained within them
- name: Build book
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ help: ## print short description of each target

.PHONY: checks
checks: ## run all the linting checks of the codebase
@echo "=== black docs ==="; poetry run blacken-docs --check book/notebooks/*.md || echo "--- black docs failed ---" >&2; \
@echo "=== black docs ==="; poetry run blacken-docs book/notebooks/*.md || echo "--- black docs failed ---" >&2; \
echo "======"

.PHONY: docs
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jupyter-book = "^0.15.1"
jupytext = "^1.14.5"

[tool.poetry.group.dev.dependencies]
blacken-docs = { git = "https://github.com/znicholls/blacken-docs.git", rev = "8dd86f" }
# Waiting on https://github.com/adamchainz/blacken-docs/issues/240
blacken-docs = { git = "https://github.com/znicholls/blacken-docs.git", rev = "27c1f12" }
tokenize-rt = "^5.0.0"
commitizen = "^3.1.1"

Expand Down

0 comments on commit d041574

Please sign in to comment.