BlackConnect

Форматирование Python-кода через blackd без запуска нового процесса black

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:

  1. pip install "black[d]"
  2. Start blackd daemon.
  3. Press "Alt + Shift + B" to reformat your code...
    ...or enable "on file save" option.
  4. Enjoy!
ВерсияOpenIDEДатаРазмер
2022.2+13.04.20242,6 МБСкачать