Update black.coffee
This commit is contained in:
parent
1b7d3668d0
commit
d4fa72094f
|
@ -41,6 +41,7 @@ module.exports = class Black extends Beautifier
|
|||
|
||||
beautify: (text, language, options, context) ->
|
||||
cwd = context.filePath and path.dirname context.filePath
|
||||
# `-` as filename reads from stdin
|
||||
@exe("black").run(["-"], {
|
||||
cwd: cwd
|
||||
onStdin: (stdin) ->
|
||||
|
|
Loading…
Reference in New Issue