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