Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

TextMate bundle : Check Python source code formatting, according to PEP-8

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Commands
Octocat-spinner-32 Support
Octocat-spinner-32 Vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 info.plist
README.markdown

Python PEP 8

Style Guide for Python Code

  • Check source code formatting, according to : PEP 8
  • Use pep8.py
    • Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org>

Usage : Use checkbook in upper-right to toggle display of code and PEP recommendation. Put list of error code to hide in textfield.

  • Command for formating to 4-space indents, no hard tab characters and triming excess spaces
  • Use reindent.py script from Python distribution
    • public domain, by Tim Peters

Installation :

cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/ppierre/python-pep8-tmbundle.git "Python PEP8.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
Something went wrong with that request. Please try again.