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

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