Skip to content

Instantly share code, notes, and snippets.

@ceocoder
Forked from jsmits/flake8.xml
Created January 8, 2015 00:54
Show Gist options
  • Save ceocoder/4d4b87a9fa61ea6cefb2 to your computer and use it in GitHub Desktop.
Save ceocoder/4d4b87a9fa61ea6cefb2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<toolSet name="Code Checking">
<tool name="Flake8" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="/usr/local/bin/flake8" />
<option name="PARAMETERS" value="--max-complexity=10 --max-line-length=100 $FilePath$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="Filter 1" />
<option name="DESCRIPTION" />
<option name="REGEXP" value="$FILE_PATH$\:$LINE$\:$COLUMN$\:.*" />
</filter>
<filter>
<option name="NAME" value="Filter 2" />
<option name="DESCRIPTION" />
<option name="REGEXP" value="$FILE_PATH$\:$LINE$\:.*" />
</filter>
</tool>
</toolSet>
@ceocoder
Copy link
Author

ceocoder commented Jan 8, 2015

Mac OS X:

drop this in ~/Library/Preferences/PyCharm30/tools
flake8 path most likely: /usr/local/share/python/flake8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment