README.rst 1.9 KB
Newer Older
Ian Cordasco's avatar
Ian Cordasco 已提交
1
2
3
========
 Flake8
========
Tarek Ziade's avatar
Tarek Ziade 已提交
4

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

7
- PyFlakes
Ian Cordasco's avatar
Ian Cordasco 已提交
8
- pycodestyle
9
- Ned Batchelder's McCabe script
10

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

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

16
- files that contain this line are skipped::
17
18
19

    # flake8: noqa

20
- lines that contain a ``# noqa`` comment at the end will not issue warnings.
Ian Cordasco's avatar
Ian Cordasco 已提交
21
22
23
24
25
- you can ignore specific errors on a line with ``# noqa: <error>``, e.g.,
  ``# noqa: E234``
- Git and Mercurial hooks
- extendable through ``flake8.extension`` and ``flake8.formatting`` entry
  points
26

Tarek Ziade's avatar
Tarek Ziade 已提交
27

Ian Cordasco's avatar
Ian Cordasco 已提交
28
Quickstart
29
==========
Tarek Ziade's avatar
Tarek Ziade 已提交
30

Ian Cordasco's avatar
Ian Cordasco 已提交
31
32
33
See our `quickstart documentation
<http://flake8.pycqa.org/en/latest/index.html#quickstart>`_ for how to install
and get started with Flake8.
34
35


Ian Cordasco's avatar
Ian Cordasco 已提交
36
37
Frequently Asked Questions
==========================
38

Ian Cordasco's avatar
Ian Cordasco 已提交
39
40
Flake8 maintains an `FAQ <http://flake8.pycqa.org/en/latest/faq.html>`_ in its
documentation.
41
42


Ian Cordasco's avatar
Ian Cordasco 已提交
43
44
Questions or Feedback
=====================
Tarek Ziade's avatar
Tarek Ziade 已提交
45

Ian Cordasco's avatar
Ian Cordasco 已提交
46
47
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
48

Ian Cordasco's avatar
Ian Cordasco 已提交
49
50
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.
51
52


Ian Cordasco's avatar
Ian Cordasco 已提交
53
54
Links
=====
55

56
* `Flake8 Documentation <http://flake8.pycqa.org/en/latest/>`_
57

Ian Cordasco's avatar
Ian Cordasco 已提交
58
* `GitLab Project <https://gitlab.com/pycqa/flake8>`_
59

Ian Cordasco's avatar
Ian Cordasco 已提交
60
61
* `All (Open and Closed) Issues
  <https://gitlab.com/pycqa/flake8/issues?scope=all&sort=updated_desc&state=all>`_
62

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

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

Ian Cordasco's avatar
Ian Cordasco 已提交
69
70
* `Getting Started Contributing
  <http://flake8.pycqa.org/en/latest/internal/contributing.html>`_
71
72


Ian Cordasco's avatar
Ian Cordasco 已提交
73
74
Maintenance
===========
75

Ian Cordasco's avatar
Ian Cordasco 已提交
76
Flake8 was created by Tarek Ziadé and is currently maintained by `Ian Cordasco
77
<http://www.coglib.com/~icordasc/>`_