mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
pep8 is nowadays called pycodestyle
See <https://github.com/PyCQA/pycodestyle/issues/466>. Pointing towards the `pep8` tool risks leading users to outdated versions of the tool (the last `pep8` version is 1.7.0 from January 2016; the currently latest `pycodestyle` version is 2.3.0).
This commit is contained in:
+8
-8
@@ -35,11 +35,11 @@ source files.
|
||||
There is also a handy syntax plugin called syntax_ featuring some improvements
|
||||
over the syntax file included in Vim 6.1.
|
||||
|
||||
These plugins supply you with a basic environment for developing in Python.
|
||||
To get the most out of Vim, you should continually check your code for syntax
|
||||
errors and PEP8 compliance. Luckily PEP8_ and Pyflakes_ will do this for you.
|
||||
If your Vim is compiled with ``+python`` you can also utilize some very
|
||||
handy plugins to do these checks from within the editor.
|
||||
These plugins supply you with a basic environment for developing in Python. To
|
||||
get the most out of Vim, you should continually check your code for syntax
|
||||
errors and PEP8 compliance. Luckily pycodestyle_ and Pyflakes_ will do this
|
||||
for you. If your Vim is compiled with ``+python`` you can also utilize some
|
||||
very handy plugins to do these checks from within the editor.
|
||||
|
||||
For PEP8 checking and pyflakes, you can install vim-flake8_. Now you can map the
|
||||
function ``Flake8`` to any hotkey or action you want in Vim. The plugin will
|
||||
@@ -68,12 +68,12 @@ Python-mode
|
||||
Python-mode_ is a complex solution for working with Python code in Vim.
|
||||
It has:
|
||||
|
||||
- Asynchronous Python code checking (``pylint``, ``pyflakes``, ``pep8``, ``mccabe``) in any combination
|
||||
- Asynchronous Python code checking (``pylint``, ``pyflakes``, ``pycodestyle``, ``mccabe``) in any combination
|
||||
- Code refactoring and autocompletion with Rope
|
||||
- Fast Python folding
|
||||
- Virtualenv support
|
||||
- Search through Python documentation and run Python code
|
||||
- Auto PEP8_ error fixes
|
||||
- Auto pycodestyle_ error fixes
|
||||
|
||||
And more.
|
||||
|
||||
@@ -86,7 +86,7 @@ using ``<Tab>`` key or any other customized keys.
|
||||
.. _indent: http://www.vim.org/scripts/script.php?script_id=974
|
||||
.. _syntax: http://www.vim.org/scripts/script.php?script_id=790
|
||||
.. _Pyflakes: http://pypi.python.org/pypi/pyflakes/
|
||||
.. _PEP8: http://pypi.python.org/pypi/pep8/
|
||||
.. _pycodestyle: https://pypi.python.org/pypi/pycodestyle/
|
||||
.. _syntastic: https://github.com/scrooloose/syntastic
|
||||
.. _Python-mode: https://github.com/klen/python-mode
|
||||
.. _SuperTab: http://www.vim.org/scripts/script.php?script_id=1643
|
||||
|
||||
Reference in New Issue
Block a user