black-pycharm icon indicating copy to clipboard operation
black-pycharm copied to clipboard

Plugin not compatible with PyCharm 2020.3

Open pavel-kalmykov opened this issue 5 years ago • 3 comments

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?

pavel-kalmykov avatar Dec 22 '20 08:12 pavel-kalmykov

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

e2m4n avatar Mar 30 '21 22:03 e2m4n

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!

vlasovskikh avatar Mar 30 '21 23:03 vlasovskikh

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

txomon avatar Aug 19 '21 10:08 txomon