ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Python Checker

by patrys ST3 Trending

A maintainable Python code checker for Sublime Text 3

Labels linting

Details

Installs

  • Total 8K
  • Win 3K
  • OS X 2K
  • Linux 2K
Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14
Windows 2 10 6 6 5 10 4 6 9 7 1 11 6 7 7 3 4 6 11 5 4 9 7 4 7 7 11 10 10 6 5 8 8 4 8 6 6 6 1 8 2 8 6 6 5 4
OS X 0 6 4 3 5 5 2 5 3 7 7 7 7 3 6 7 1 3 6 7 6 5 3 3 2 9 6 4 11 1 2 1 8 6 4 4 6 3 3 2 3 3 6 9 5 5
Linux 1 19 1 5 9 13 9 6 9 2 5 6 5 7 6 6 4 4 6 5 9 9 3 4 0 6 5 14 3 8 4 1 4 11 5 6 7 7 3 1 3 5 11 3 5 2

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