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

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