diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5ee0854..78fa99c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: | diff --git a/Makefile b/Makefile index a63a81e..c8bd701 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index cd6105b..4e9e866 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"