blacken-docs icon indicating copy to clipboard operation
blacken-docs copied to clipboard

Run `black` on python code blocks in documentation files

Results 27 blacken-docs issues
Sort by recently updated
recently updated
newest added

### Description Firstly thanks for such an awesome tool. In my repository, I wrote jupyter notebooks, which I then save to markdown files using [jupytext](https://jupytext.readthedocs.io/en/latest/#which-text-format). I would like to run...

### Python Version _No response_ ### Package Version _No response_ ### Description The new `--rst-literal-blocks` option from #196 picks up literal blocks *within* other directives like code blocks: ``` How...

updates: - [github.com/tox-dev/pyproject-fmt: 2.0.4 → 2.1.1](https://github.com/tox-dev/pyproject-fmt/compare/2.0.4...2.1.1)

### Description Ruff formatter can replace Black, and it's much faster: https://docs.astral.sh/ruff/formatter/ I suggest supporting it as an option while keeping Black the default Python formatter. Opting for Ruff can...

Attempt at #108 but it's harder than expected so giving up for now.

Reproducing #302. Holding on fix until we do per-file-type formatting.