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

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