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

Python Checker

by patrys ST3 Trending

A maintainable Python code checker for Sublime Text 3

Labels linting

Details

Installs

  • Total 85K
  • Win 47K
  • Mac 16K
  • Linux 21K
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7
Windows 1 6 10 5 6 3 4 3 0 1 1 3 4 4 4 4 1 3 4 6 4 1 5 0 3 3 0 6 1 3 0 0 5 3 4 6 5 3 5 1 4 3 1 1 2 2
Mac 0 2 1 1 0 2 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 0 1 0 2 3 2 0 2 0 1 1 1 1 1 3 1 0 1 0 0 0 0 0 0 0
Linux 0 3 0 0 2 2 3 2 3 0 2 2 2 2 1 1 0 1 3 1 2 1 0 1 0 1 1 2 1 2 2 1 1 0 1 2 1 1 0 1 0 3 0 0 1 4

Readme

Source
raw.​githubusercontent.​com

Python Checker

A maintainable Python code checker for Sublime Text 3

Screenshot

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