Skip to content

Instantly share code, notes, and snippets.

@yuriihabrusiev
Created July 17, 2013 07:17
Show Gist options
  • Save yuriihabrusiev/6018345 to your computer and use it in GitHub Desktop.
Save yuriihabrusiev/6018345 to your computer and use it in GitHub Desktop.
Flake8 build system for Sublime Text 3

Installation

  • Install flake8
  • pip install flake8
  • Save Flake8.sublime-build to your Sublime Text Packages/User directory

Usage

  • Ctrl+b - run Flake8 on current file and show result window
  • F4 - next error
  • Shift+F4 - previous error
  • Ctrl+Shift+b - run file
{
"shell_cmd": "flake8 $file; echo",
"file_regex": "^(.*):(\\d+):(\\d+): (.*)$",
"selector": "source.python",
"variants": [
{
"shell_cmd": "python -u $file",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Run"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment