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

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