All Projects → keewis → blackdoc

keewis / blackdoc

Licence: MIT license
run black on documentation code snippets

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to blackdoc

snakefmt
The uncompromising Snakemake code formatter
Stars: ✭ 78 (+151.61%)
Mutual labels:  black, codeformatter
yiq
Returns white when a color is dark and black when a color is light.
Stars: ✭ 24 (-22.58%)
Mutual labels:  black
reactant
Generate code for "models, views, and urls" based on Python type annotations. Supports Django REST, SQLAlchemy, Peewee.
Stars: ✭ 14 (-54.84%)
Mutual labels:  black
doctest
The fastest feature-rich C++11/14/17/20 single-header testing framework
Stars: ✭ 4,434 (+14203.23%)
Mutual labels:  doctest
yoru.
A black Substratum theme for Samsung Oreo only.
Stars: ✭ 21 (-32.26%)
Mutual labels:  black
power-doctest
JavaScript Doctest for JavaScript, Markdown and Asciidoc.
Stars: ✭ 45 (+45.16%)
Mutual labels:  doctest
slacky-dark
Dark mode theme for Slack desktop clients
Stars: ✭ 24 (-22.58%)
Mutual labels:  black
palantir-java-format
A modern, lambda-friendly, 120 character Java formatter.
Stars: ✭ 203 (+554.84%)
Mutual labels:  codeformatter
Doctest
The fastest feature-rich C++11/14/17/20 single-header testing framework
Stars: ✭ 3,568 (+11409.68%)
Mutual labels:  doctest
NarrativeTest.jl
Julia library for functional testing.
Stars: ✭ 18 (-41.94%)
Mutual labels:  doctest
DDBlackWhite
🎨🚫 Make your image black and white
Stars: ✭ 22 (-29.03%)
Mutual labels:  black
python-lint
GitHub Action for Lint your code
Stars: ✭ 57 (+83.87%)
Mutual labels:  black
cpp14-project-template
A simple, cross-platform, and continuously integrated C++14 project template
Stars: ✭ 64 (+106.45%)
Mutual labels:  doctest
macos-blank-screensaver
Blank (black) screensaver for MacOS
Stars: ✭ 27 (-12.9%)
Mutual labels:  black
blackbricks
Black for Databricks notebooks
Stars: ✭ 40 (+29.03%)
Mutual labels:  black
rubric
Linter Config Initializer for Python
Stars: ✭ 21 (-32.26%)
Mutual labels:  black
continuous-integration-with-python
How to test your python code. How to automatically run your tests for your Python code. How to get reports of the tests coverage
Stars: ✭ 25 (-19.35%)
Mutual labels:  doctest
Black-Tool
Install the tools and start Attacking , black-tool v5.0 ! ⬛
Stars: ✭ 239 (+670.97%)
Mutual labels:  black
elm-doctest
doctest runner against Elm-lang source files
Stars: ✭ 13 (-58.06%)
Mutual labels:  doctest
catch-lest-other-comparison
Tabularised feature comparison between Catch, doctest and lest C++ test frameworks
Stars: ✭ 20 (-35.48%)
Mutual labels:  doctest

blackdoc

https://github.com/keewis/blackdoc/workflows/CI/badge.svg?branch=master Documentation Status

blackdoc is a tool that applies black to code in documentation.

It was originally a rewrite of a gist and called black-doctest. In April 2020, it was renamed to blackdoc.

Installation

Dependencies:

Install it with:

python -m pip install blackdoc

Usage

The commandline interface supports two modes: checking and inplace reformatting.

python -m blackdoc --help

In inplace reformatting mode, it will reformat the doctest lines and write them back to disk:

# on explicitly mentioned files
python -m blackdoc file1.py file2.py
# on the whole directory
python -m blackdoc .

When checking, it will report the changed files but will not write them to disk:

python -m blackdoc --check .

It is also possible to use the entrypoint script:

blackdoc --help
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].