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
{{ message }}
This repository was archived by the owner on Jul 11, 2022. It is now read-only.
Repository navigation
Commit 79b720c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,12 @@ Options:
54
54
--help Show this message and exit.
55
55
```
56
56
57
+
`Black` is a well-behaved Unix-style command-line tool:
58
+
* it does nothing if no sources are passed to it;
59
+
* it will read from standard input and write to standard output if `-`
60
+
is used as the filename;
61
+
* it only outputs messages to users on standard error.
62
+
57
63
58
64
## The philosophy behind *Black*
59
65
@@ -209,6 +215,12 @@ body.
209
215
210
216
* Visual Studio Code: [joslarson.black-vscode](https://marketplace.visualstudio.com/items?itemName=joslarson.black-vscode)
211
217
218
+
Any tool that can pipe code through *Black* using its stdio mode (just
219
+
[use `-` as the file name](http://www.tldp.org/LDP/abs/html/special-chars.html#DASHREF2)).
220
+
The formatted code will be returned on stdout (unless `--check` was
221
+
passed). *Black* will still emit messages on stderr but that shouldn't
222
+
affect your use case.
223
+
212
224
There is currently no integration with any other text editors. Vim and
213
225
Atom/Nuclide integration is planned by the author, others will require
0 commit comments