Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flake8 integrated with PyCharm
How to manually setup flake8 as PyCharm external tool
File / Settings / Tools / External Tools / Add
Name: Flake8
Program: $PyInterpreterDirectory$/python
Parameters: -m flake8 --max-complexity 10 --ignore E501 $FilePath$
Working directory: $ProjectFileDir$
Output Filters / Add
Name: Filter 1
Regular expression to match output:
$FILE_PATH$\:$LINE$\:$COLUMN$\:.*
Output Filters / Add
Name: Filter 2
Regular expression to match output:
$FILE_PATH$\:$LINE$\:.*
To check source with flake8:
Tools / External Tools / Flake8
Can be used with single files as well as with directories, recursively.
@myheartsgoon

This comment has been minimized.

Copy link

@myheartsgoon myheartsgoon commented Mar 7, 2019

thanks, it helps

@wufu-fire

This comment has been minimized.

Copy link

@wufu-fire wufu-fire commented May 14, 2019

not work, errors: permission denied.

@Den4i

This comment has been minimized.

Copy link

@Den4i Den4i commented Oct 15, 2019

thx, it working

@jantonacci

This comment has been minimized.

Copy link

@jantonacci jantonacci commented Dec 10, 2019

@gilsondev

This comment has been minimized.

Copy link

@gilsondev gilsondev commented May 25, 2020

Using this config with file watcher:

https://tirinox.ru/flake8-pycharm/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.