You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/the_black_code_style/current_style.md
+3-12Lines changed: 3 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,9 @@ deliberately limited and rarely added. Previous formatting is taken into account
8
8
little as possible, with rare exceptions like the magic trailing comma. The coding style
9
9
used by _Black_ can be viewed as a strict subset of PEP 8.
10
10
11
-
_Black_ reformats entire files in place. It doesn't reformat lines that contain
12
-
`# fmt: skip` or blocks that start with `# fmt: off` and end with `# fmt: on`.
13
-
`# fmt: skip` can be mixed with other pragmas/comments either with multiple comments
14
-
(e.g. `# fmt: skip # pylint # noqa`) or as a semicolon separated list (e.g.
15
-
`# fmt: skip; pylint; noqa`). `# fmt: on/off` must be on the same level of indentation
16
-
and in the same block, meaning no unindents beyond the initial indentation level between
17
-
them. It also recognizes [YAPF](https://github.com/google/yapf)'s block comments to the
18
-
same effect, as a courtesy for straddling code.
19
-
20
-
The rest of this document describes the current formatting style. If you're interested
21
-
in trying out where the style is heading, see [future style](./future_style.md) and try
22
-
running `black --preview`.
11
+
This document describes the current formatting style. If you're interested in trying out
12
+
where the style is heading, see [future style](./future_style.md) and try running
0 commit comments