flake8


Ⅰ. 插件描述

The official GitHub mirror of https://gitlab.com/pycqa/flake8

Ⅱ. 基本信息

创建日期:  2014-09-13
使用用户:  3
Github星:  798
插件作者:  Python Code Quality Authority

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'pycqa/flake8'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'pycqa/flake8'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'pycqa/flake8'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/pycqa/flake8

Ⅳ. 文档说明

========

Flake8

Flake8 is a wrapper around these tools:

  • PyFlakes
  • pycodestyle
  • Ned Batchelder's McCabe script

Flake8 runs all the tools by launching the single flake8 command.
It displays the warnings in a per-file, merged output.

It also adds a few features:

  • files that contain this line are skipped::

    # flake8: noqa
    
  • lines that contain a # noqa comment at the end will not issue warnings.
  • you can ignore specific errors on a line with # noqa: <error>, e.g.,
    # noqa: E234. Multiple codes can be given, separated by comma. The noqa token is case insensitive, the colon before the list of codes is required otherwise the part after noqa is ignored
  • Git and Mercurial hooks
  • extendable through flake8.extension and flake8.formatting entry
    points

Quickstart

See our `quickstart documentation
http://flake8.pycqa.org/en/latest/index.html#quickstart`_ for how to install
and get started with Flake8.

Frequently Asked Questions

Flake8 maintains an FAQ <http://flake8.pycqa.org/en/latest/faq.html>_ in its
documentation.

Questions or Feedback

If you have questions you'd like to ask the developers, or feedback you'd like
to provide, feel free to use the mailing list: code-quality@python.org

We would love to hear from you. Additionally, if you have a feature you'd like
to suggest, the mailing list would be the best place for it.

Links

Maintenance

Flake8 was created by Tarek Ziadé and is currently maintained by `Ian Cordasco
http://www.coglib.com/~icordasc/`_

添加新评论