Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.