pablogsal / black-pycharm

Pycharm plugin for https://github.com/ambv/black
32 stars 11 forks source link

Plugin not compatible with PyCharm 2020.3 #14

Open pavel-kalmykov opened 3 years ago

pavel-kalmykov commented 3 years ago

I have just updated the PyCharm IDE and saw that this plugin is no longer compatible:

image

Would it be possible to update it so it is compatible with the last version, please?

e2m4n commented 3 years ago

While we're waiting for an update, I hope this helps anyone looking to replicate the functionality using PyCharm's File Watchers: image

vlasovskikh commented 3 years ago

FYI there is another plugin for PyCharm that integrates Black as a formatter: BlackConnect. It works via the blackd daemon from for faster response times. The plugin is maintained, it works well for me.

From its installation instructions:

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!
txomon commented 2 years ago

If anyone is looking for this plugin's last build, I have a branch in https://github.com/txomon/black-pycharm/tree/feature/upgrade-and-gradle based on #13 that you can use to build the plugin.

This file contains the plugin for the latest branch (2021.2) black-pycharm-1.0.7.zip