Connect to blackd and format your Python code without creating a new black process!
Avoid overhead of starting a new black process on each file save by making a quick HTTP call to blackd instead.
Features supported:
– Automatically starting blackd when IDE opens.
– Automatic Python type stub (.pyi) detection.
– Configurable options: hostname, port, preferred line length, etc.
– Trigger automatically when saving changed files.
- Ability to reformat only selected code fragment.
– Support for [tool.black] section in pyproject.toml.
– Rough support for "Jupyter" file type.
Steps to use: