Skip to content

Commit c23a5c1

Browse files
mcsitterichard26
authored andcommitted
Clarify that Black runs with --safe by default (#3378)
1 parent 8091b25 commit c23a5c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/the_black_code_style/current_style.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,9 @@ the latter are treated as true raw strings with no special semantics.
457457

458458
### AST before and after formatting
459459

460-
When run with `--safe`, _Black_ checks that the code before and after is semantically
461-
equivalent. This check is done by comparing the AST of the source with the AST of the
462-
target. There are three limited cases in which the AST does differ:
460+
When run with `--safe` (the default), _Black_ checks that the code before and after is
461+
semantically equivalent. This check is done by comparing the AST of the source with the
462+
AST of the target. There are three limited cases in which the AST does differ:
463463

464464
1. _Black_ cleans up leading and trailing whitespace of docstrings, re-indenting them if
465465
needed. It's been one of the most popular user-reported features for the formatter to

0 commit comments

Comments
 (0)