Extentions to Pycharm code formatting tools

Extentions to Pycharm code formatting tools.
Currently supported are flake8 and black on a selected code block.

Usage

Flake8 [PEP8] validation on selected code block

Flake8 on a selection

Black formatting on selected code block

Flake8 on a selection

Installation

  1. Install the repo (preferably in conda env or virtualenv):

pip install git+https://github.com/haim0n/pycharm_ext_tools.git

  1. Add new external tool per utility (e.g. flake8) as follows:

File -> Settings -> Tools -> External Tools -> '+' (Add)

For conda environment named dev fill in the params: