Skip to content

blackd: a server mode to circumvent startup time costs #349

@maciejkula

Description

@maciejkula

I love black, and have championed its adoption where I work (ravelin.com).

However, it is currently not a viable save hook in the same way gofmt and rustfmt are: taking into account the startup time of the Python interpreter, it is simply too slow. After every save, I need to be conscious that I need to wait a second or two for black to do its thing and let my editor autoreload.

Would you be open to adding a server/daemon mode, where a persistent instance of Black is running and listening to formatting requests?

(Of course, ideally we would compile Black into a very quickly starting binary, but that is probably quite a difficult task.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions