ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Python Pep​8 Lint

by dreadatour ST2

Sublime Text 2 plugin / check Python files against some of the style conventions in PEP8

Labels linting

Details

  • 2013.10.11.06.34.32
  • github.​com
  • github.​com
  • 4 years ago
  • 11 minutes ago
  • 5 years ago

Installs

  • Total 16K
  • Win 5K
  • OS X 6K
  • Linux 5K
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 4 0 0 0 0 1 1 1 0 1 0 2 1 0 1 1 0 0 1 0 0 1 0 1 0 1 1 2 1 1 0 1 1 2 0 13 0 0 0 1 0 1 2 0 0
OS X 1 1 0 0 0 1 1 3 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 3 0 1
Linux 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 1 0 0 2 1 0 0 0 1 0 0 0 1 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

Here is new, more powerful plugin for lint your Python files: github.com/dreadatour/Flake8Lint

Flake8Lint includes pep8 lind and pyflakes lint - please, use it.

Pep8Lint

Pep8Lint is a Sublime Text 2 plugin for check Python files against some of the style conventions in PEP8.

Based on github.com/jcrocholl/pep8.

Install

Download the latest source from GitHub and copy Pep8Lint folder to your ST2 “Packages” directory.

Or clone the repository to your ST2 “Packages” directory:

git clone git://github.com/dreadatour/Pep8Lint.git

The “Packages” directory is located at:

  • OS X:

    ~/Library/Application Support/Sublime Text 2/Packages/
    
  • Linux:

    ~/.config/sublime-text-2/Packages/
    
  • Windows:

    %APPDATA%/Sublime Text 2/Packages/
    

Config

Default Pep8Lint config: “Preferences” -> “Package Settings” -> “Pep8Lint” -> “Settings - Default”

{
    // run pep8 lint on file saving
    "lint_on_save": true,
    // set maximum line length
    "max-line-length": 79,
    // select errors and warnings (e.g. ["E", "W6"])
    "select": [],
    //skip errors and warnings (e.g. ["E303", E4", "W"])
    "ignore": [],

    // Visual settings

    // display popup with errors
    "popup": true,
    // highlight errors
    "highlight": false
}

To change default settings, go to “Preferences” -> “Package Settings” -> “Pep8Lint” -> “Settings - User” and paste default config to opened file.

Features / Usage

Automatically check Python files with pep8 lint tool and show window with error list:

Error list

And move to error line/char on select.