Skip to content

Instantly share code, notes, and snippets.

@csaez
Created January 28, 2017 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csaez/76f4ab9205cef70daf8d1fd070031bc7 to your computer and use it in GitHub Desktop.
Save csaez/76f4ab9205cef70daf8d1fd070031bc7 to your computer and use it in GitHub Desktop.
Flake 8 command
#!/home/csaez/.nvim/py2/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from flake8.main.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment