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