Skip to content

evandroforks/SublimeLinter-pylint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SublimeLinter-pylint

Build Status

This linter plugin for SublimeLinter provides an interface to pylint. It will be used with files that have the "python" syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Before using this plugin, ensure that pylint (1.0 or later) is installed on your system. To install pylint, do the following:

  1. Install Python and pip. If you plan to code in Python 3, you will need to install pip for Python 3 as well.

  2. Install pylint by typing the following in a terminal, replacing ‘x’ with the minor version installed on your system:

    # For python 2.x
    [sudo] pip-2.x install pylint
    
    # For python 3.x
    [sudo] pip-3.x install pylint
    
    # On Windows, for python 2.x
    c:\Python2x\Scripts\pip.exe install pylint
    
    # On Windows, for python 3.x
    c:\Python3x\Scripts\pip.exe install pylint

Please make sure that the path to pylint is available to SublimeLinter. The docs cover troubleshooting PATH configuration.

By Package Control

  1. Download & Install Sublime Text 3 (https://www.sublimetext.com/3)
  2. Go to the menu Tools -> Install Package Control, then, wait few seconds until the installation finishes up
  3. Now, Go to the menu Preferences -> Package Control
  4. Type Add Channel on the opened quick panel and press Enter
  5. Then, input the following address and press Enter
    https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
    
  6. Go to the menu Tools -> Command Palette... (Ctrl+Shift+P)
  7. Type Preferences: Package Control Settings – User on the opened quick panel and press Enter
  8. Then, find the following setting on your Package Control.sublime-settings file:
    "channels":
    [
        "https://packagecontrol.io/channel_v3.json",
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
    ],
  9. And, change it to the following, i.e., put the https://raw.githubusercontent... line as first:
    "channels":
    [
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
        "https://packagecontrol.io/channel_v3.json",
    ],
    • The https://raw.githubusercontent... line must to be added before the https://packagecontrol.io... one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channel https://packagecontrol.io...
  10. Now, go to the menu Preferences -> Package Control
  11. Type Install Package on the opened quick panel and press Enter
  12. Then, search for SublimeLinter-pylint and press Enter

See also:

  1. ITE - Integrated Toolset Environment
  2. Package control docs for details.

Settings

Pylint can be configured using .pylintrc configuration files and inline comments, more information in the pylint docs.