Skip to content

Instantly share code, notes, and snippets.

@neotheicebird
Forked from tossmilestone/Flake8.txt
Created November 16, 2018 21:11
Show Gist options
  • Save neotheicebird/401565c31b98d663aab5e8a79b0650c2 to your computer and use it in GitHub Desktop.
Save neotheicebird/401565c31b98d663aab5e8a79b0650c2 to your computer and use it in GitHub Desktop.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment