flake8

PyCQA活跃维护

把 pycodestyle、pyflakes、mccabe 和第三方插件整合到一起的 Python 代码检查工具,一次运行就能查出风格问题和潜在错误。

flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

暂无版本3,836star +2 / 7 天366fork同步于 2026-11-10 05:38 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    .. image:: https://github.com/PyCQA/flake8/workflows/main/badge.svg :target: https://github.com/PyCQA/flake8/actions?query=workflow%3Amain :alt: build status

    .. image:: https://results.pre-commit.ci/badge/github/PyCQA/flake8/main.svg :target: https://results.pre-commit.ci/latest/github/PyCQA/flake8/main :alt: pre-commit.ci status

    .. image:: https://img.shields.io/discord/825463413634891776.svg :target: https://discord.gg/qYxpadCgkx :alt: Discord

    ======== 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 <https://flake8.pycqa.org/en/latest/index.html#quickstart>_ for how to install and get started with Flake8.

    Frequently Asked Questions

    Flake8 maintains an FAQ <https://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: [email protected]

    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 <https://flake8.pycqa.org/en/latest/>_

    • GitHub Project <https://github.com/pycqa/flake8>_

    • All (Open and Closed) Issues <https://github.com/pycqa/flake8/issues?q=is%3Aissue>_

    • Code-Quality Archives <https://mail.python.org/mailman/listinfo/code-quality>_

    • Code of Conduct <https://flake8.pycqa.org/en/latest/internal/contributing.html#code-of-conduct>_

    • Getting Started Contributing <https://flake8.pycqa.org/en/latest/internal/contributing.html>_

    Maintenance

    Flake8 was created by Tarek Ziadé and is currently maintained by anthony sottile <https://github.com/sponsors/asottile>_ and Ian Cordasco <https://www.coglib.com/~icordasc/>_