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 33K
  • Win 15K
  • OS X 8K
  • Linux 10K
Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3
Windows 23 18 21 23 18 22 19 29 7 14 17 39 28 23 35 13 18 24 11 25 32 23 14 25 28 24 19 19 27 31 17 21 44 19 14 19 21 22 26 17 25 22 20 17 12 26
OS X 7 6 7 6 9 7 12 10 6 4 5 10 4 6 12 4 5 7 6 5 11 11 3 9 12 6 15 6 9 4 4 9 7 8 14 11 3 6 6 14 14 7 6 6 9 6
Linux 7 10 7 8 10 9 7 9 6 3 14 8 7 11 8 12 9 11 22 9 10 11 9 10 11 11 17 11 15 13 7 12 17 9 11 10 9 10 13 12 13 16 11 7 21 12

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