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 67K
  • Win 36K
  • Mac 13K
  • Linux 17K
Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 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
Windows 20 13 22 18 14 14 21 21 14 18 7 13 17 11 25 21 16 15 20 14 15 12 18 18 11 13 12 11 18 16 11 25 12 11 7 18 18 20 10 14 17 20 12 20 25 18
Mac 1 7 3 3 1 4 3 3 3 4 3 3 1 3 8 6 11 7 1 3 1 2 5 4 3 2 2 1 5 0 0 3 2 2 2 5 7 3 1 4 1 2 3 5 4 2
Linux 3 5 4 4 6 5 5 7 6 4 3 3 2 2 3 2 3 8 4 5 5 6 3 5 2 5 2 3 1 2 4 6 5 5 5 5 5 7 5 3 8 9 2 6 6 3

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