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

Python Checker

by patrys ST3

A maintainable Python code checker for Sublime Text 3

Labels linting

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Python Checker

A maintainable Python code checker for Sublime Text 3

Once the plugin is installed, it will highlight common problems in your Python code.

Internally it relies on the wonderful pyflakes and pep8 packages.

Installation

Use Package Control.

Python version

By default Python Checker will use the version of Python that came with Sublime Text 3. This currently means Python 3 and can result in problems like undefined name 'unicode' being reported. If you want to use a different version, set the python_interpreter_path option in your project settings:

# <project name>.sublime-project
{
    "settings": {
        "python_interpreter_path": "/usr/bin/python"
    }
}

This is compatible with other plugins including SublimeJEDI.

PEP8 checks

Use the standard pep8 configuration files to control the behaviour including skipping some checks. An example project configration might look like this:

# setup.cfg or tox.ini
[pep8]
ignore = E501,W191
max-line-length = 120