README.rst 2.6 KB
Newer Older
1
2
3
4
.. image:: https://github.com/PyCQA/flake8/workflows/main/badge.svg
   :target: https://github.com/PyCQA/flake8/actions?query=workflow%3Amain
   :alt: build status

Anthony Sottile's avatar
Anthony Sottile 已提交
5
6
.. image:: https://results.pre-commit.ci/badge/github/PyCQA/flake8/main.svg
   :target: https://results.pre-commit.ci/latest/github/PyCQA/flake8/main
7
8
   :alt: pre-commit.ci status

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

Ian Cordasco's avatar
Ian Cordasco 已提交
13
14
15
========
 Flake8
========
Tarek Ziade's avatar
Tarek Ziade 已提交
16

17
Flake8 is a wrapper around these tools:
Tarek Ziade's avatar
Tarek Ziade 已提交
18

19
- PyFlakes
Ian Cordasco's avatar
Ian Cordasco 已提交
20
- pycodestyle
21
- Ned Batchelder's McCabe script
22

Ian Cordasco's avatar
Ian Cordasco 已提交
23
Flake8 runs all the tools by launching the single ``flake8`` command.
24
It displays the warnings in a per-file, merged output.
Tarek Ziade's avatar
Tarek Ziade 已提交
25
26

It also adds a few features:
Tarek Ziade's avatar
Tarek Ziade 已提交
27

28
- files that contain this line are skipped::
29
30
31

    # flake8: noqa

32
- lines that contain a ``# noqa`` comment at the end will not issue warnings.
Ian Cordasco's avatar
Ian Cordasco 已提交
33
- you can ignore specific errors on a line with ``# noqa: <error>``, e.g.,
34
  ``# 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
Ian Cordasco's avatar
Ian Cordasco 已提交
35
36
37
- Git and Mercurial hooks
- extendable through ``flake8.extension`` and ``flake8.formatting`` entry
  points
38

Tarek Ziade's avatar
Tarek Ziade 已提交
39

Ian Cordasco's avatar
Ian Cordasco 已提交
40
Quickstart
41
==========
Tarek Ziade's avatar
Tarek Ziade 已提交
42

Ian Cordasco's avatar
Ian Cordasco 已提交
43
See our `quickstart documentation
44
<https://flake8.pycqa.org/en/latest/index.html#quickstart>`_ for how to install
Ian Cordasco's avatar
Ian Cordasco 已提交
45
and get started with Flake8.
46
47


Ian Cordasco's avatar
Ian Cordasco 已提交
48
49
Frequently Asked Questions
==========================
50

51
Flake8 maintains an `FAQ <https://flake8.pycqa.org/en/latest/faq.html>`_ in its
Ian Cordasco's avatar
Ian Cordasco 已提交
52
documentation.
53
54


Ian Cordasco's avatar
Ian Cordasco 已提交
55
56
Questions or Feedback
=====================
Tarek Ziade's avatar
Tarek Ziade 已提交
57

Ian Cordasco's avatar
Ian Cordasco 已提交
58
59
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
60

Ian Cordasco's avatar
Ian Cordasco 已提交
61
62
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.
63
64


Ian Cordasco's avatar
Ian Cordasco 已提交
65
66
Links
=====
67

68
* `Flake8 Documentation <https://flake8.pycqa.org/en/latest/>`_
69

70
* `GitHub Project <https://github.com/pycqa/flake8>`_
71

Ian Cordasco's avatar
Ian Cordasco 已提交
72
* `All (Open and Closed) Issues
73
  <https://github.com/pycqa/flake8/issues?q=is%3Aissue>`_
74

Ian Cordasco's avatar
Ian Cordasco 已提交
75
* `Code-Quality Archives
76
  <https://mail.python.org/mailman/listinfo/code-quality>`_
77

Ian Cordasco's avatar
Ian Cordasco 已提交
78
* `Code of Conduct
79
  <https://flake8.pycqa.org/en/latest/internal/contributing.html#code-of-conduct>`_
Tarek Ziade's avatar
Tarek Ziade 已提交
80

Ian Cordasco's avatar
Ian Cordasco 已提交
81
* `Getting Started Contributing
82
  <https://flake8.pycqa.org/en/latest/internal/contributing.html>`_
83
84


Ian Cordasco's avatar
Ian Cordasco 已提交
85
86
Maintenance
===========
87

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