Skip to content

farhanmustar/ale-python-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Ale Python Linter

A python linter plugin for dense-analysis/ale . Ported from vim-syntastic/syntastic.

  • Simple python linter using the compile function.
  • Works on both python2 and python3.

Installation

This plugin require dense-analysis/ale. Follow ale installation process here.

Installation using Vundle.vim.

Plugin 'farhanmustar/ale-python-linter'

Installation using vim-plug.

Plug 'farhanmustar/ale-python-linter'

Enable python linter by adding these lines in ~/.vimrc.

let g:ale_linters = {
\   'python': ['python'],
\}

Configuration

By default this plugin will use python keyword to execute linter script.
Therefore, to use this plugin we need to makesure python is executable by vim.

Execute this command in vim to check:

:echo executable('python')

Alternatively user can configure to use python2 or python3 keyword by adding this to ~/.vimrc:

let g:ale_python_python_executable = 'python2'