farhanmustar / ale-python-linter

Python linter for vim-ale.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

Python linter for vim-ale.

License:MIT License


Languages

Language:Vim Script 71.2%Language:Python 28.8%