Skip to content

Instantly share code, notes, and snippets.

@swizzlevixen
Forked from coryalder/BBFlakes.py
Last active June 7, 2018 06:07
Show Gist options
  • Save swizzlevixen/693f046b27b0980583725579d3483ce6 to your computer and use it in GitHub Desktop.
Save swizzlevixen/693f046b27b0980583725579d3483ce6 to your computer and use it in GitHub Desktop.
Flake8 Script for BBEdit 12 and Python 3
# Never mind.
#
# This functionality has been built in since BBEdit 11.6,
# and works way better. (See the notes below.)
@swizzlevixen
Copy link
Author

swizzlevixen commented Jun 7, 2018

This script will almost certainly work on older versions of BBEdit, but I've just posted the versions that I had on hand to test when I wrote the script. Mainly in keeping with earlier versions of this script, but with more columnar and succinct output. Most variables renamed for clarity.

@swizzlevixen
Copy link
Author

HAHAHAAA I didn’t even need to do that at all, because it’s been built in since BBEdit 11.6. All I had to do was install flake8. Pays to read the release notes, I guess:

If flake8 is installed (which you can do using pip install flake8, see the pip website for more details), "Check Syntax" for Python scripts will use it instead, since it provides better diagnostics overall.

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