keewis / blackdoc

run black on documentation code snippets
https://blackdoc.readthedocs.io
MIT License
47 stars 4 forks source link

add a force exclude option #49

Closed keewis closed 4 years ago

keewis commented 4 years ago

Related to #33. This option is solely to mirror black's CLI.

Edit: turns out this is for files that were explicitly listed in the command line:

python -m blackdoc --check --force-exclude "to_format.py" . to_format.py

would not reformat to_format.py while --exclude would only filter the to_format.py from reformatting .