pep8 : Check your python source files with PEP8
script karma |
Rating 142/75,
Downloaded by 9701 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Davide Lo Re |
|
script type |
utility |
|
description |
You need to install this tool: http://github.com/cburroughs/pep8.py
It's a simple program that just checks if your python code is pep-8 compliant.
Pressing F5 will run it using the "quickfix" feature.
This way you can "navigate" through errors using :cn and other standard commands.
This is mostly copied from http://www.vim.org/scripts/script.php?script_id=891 |
|
install details |
just put the file in your ~/.vim/ftplugin/python directory (if that doesn't exist, create it)
The default mapping is F5, you can change it putting
let g:pep8_map='whatever'
in your vimrc |
|
script versions (upload new version)
Click on the package to download.
pep8.vim |
0.3.1 |
2010-11-24 |
7.0 |
Davide Lo Re |
The "PEP8 correct" message is now highlighted in green (as in makegreen) |
pep8.vim |
0.3 |
2010-11-24 |
7.0 |
Davide Lo Re |
* Allow to choose the mapping
* If there are no errors, just print "PEP8 correct" (a-la makegreen)
(thanks Adrien LEMAIRE for the suggestions) |
pep8.vim |
0.2 |
2010-11-02 |
7.0 |
Davide Lo Re |
bugfix when trying to open 2 python files (thanks to Robson Roberto Souza Peixoto) |
pep8.vim |
0.1 |
2010-01-03 |
6.0 |
Davide Lo Re |
Initial upload |
ip used for rating: 3.17.79.195
|