Skip to content

finsberg/blacken-docs-jb

Repository files navigation

blacken-docs-jb

Extension of blacken-docs which also supports the executable code blocks from JupyterBook e.g

```{code-cell} python
x = 1 + 2
```

Install

pip install blacken-docs-jb

Usage with pre-commit

See pre-commit for instructions

Sample .pre-commit-config.yaml:

- repo: https://github.com/finsberg/blacken-docs-jb
    rev: v0.6.2
    hooks:
      - id: blacken-docs-jb
        additional_dependencies: [black==22.3.0]
        exclude: slides

License

This project is licensed under MIT. The license file from blacken-docs is found in LICENSE_blacken_docs.

About

Extension of blancken-docs for jupyterbook

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages