Ⅰ. 插件描述
The official GitHub mirror of https://gitlab.com/pycqa/flake8Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用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
# noqacomment 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. Thenoqatoken is case insensitive, the colon before the list of codes is required otherwise the part afternoqais ignored - Git and Mercurial hooks
- extendable through
flake8.extensionandflake8.formattingentry
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
Flake8 Documentation <http://flake8.pycqa.org/en/latest/>_GitLab Project <https://gitlab.com/pycqa/flake8>_- `All (Open and Closed) Issues
https://gitlab.com/pycqa/flake8/issues?scope=all&sort=updated_desc&state=all`_ - `Code-Quality Archives
https://mail.python.org/mailman/listinfo/code-quality`_ - `Code of Conduct
http://flake8.pycqa.org/en/latest/internal/contributing.html#code-of-conduct`_ - `Getting Started Contributing
http://flake8.pycqa.org/en/latest/internal/contributing.html`_
Maintenance
Flake8 was created by Tarek Ziadé and is currently maintained by `Ian Cordasco
http://www.coglib.com/~icordasc/`_