Skip to content

Commit

Permalink
Document black escape hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed May 22, 2020
1 parent 00aabdc commit 3a88e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ will let you focus on more important style issues like choosing good
names, writing useful comments, and making sure your docstrings are
nicely formatted. (black doesn't reformat comments or docstrings.)

Very occasionally, you'll want to override black formatting. To do so,
you can can add `# fmt: off` and `# fmt: on` comments.

If you want to see what changes black will make, you can use::

black --diff setup.py trio
Expand Down

0 comments on commit 3a88e51

Please sign in to comment.