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. https://flake8.pycqa.org
Find a file
Jon Dufresne db4f71288e Prefer iter(dict) instead of dict.keys()
They are equivalent for iterating so remove the additional function
call.

Pattern identified as outdated by Lennart Regebro's PyCon 2017 talk
"Prehistoric Patterns in Python"

https://www.youtube.com/watch?v=V5-JH23Vk0I
2017-05-27 11:54:06 -07:00
docs Add release note for bug 329 2017-05-25 20:08:59 -05:00
example-plugin Add an example plugin project to source tree 2016-10-25 18:21:50 -05:00
src/flake8 Prefer iter(dict) instead of dict.keys() 2017-05-27 11:54:06 -07:00
tests Prefer iter(dict) instead of dict.keys() 2017-05-27 11:54:06 -07:00
.appveyor.yml Add dogfood testenv to AppVeyor list 2016-08-03 16:48:39 -05:00
.bandit.yml Configure bandit to ignore subprocess warnings 2016-06-14 07:58:13 -05:00
.coveragerc Add coverage reporting and uploading 2016-08-06 15:21:50 -05:00
.gitignore Add coverage reporting and uploading 2016-08-06 15:21:50 -05:00
.gitlab-ci.yml Add Python 3.6 to CI services 2017-01-15 11:26:12 -06:00
.hgignore Ignore ./.tox directory 2014-03-30 23:54:36 +02:00
.hgtags Release v2.2.3 2014-08-25 19:03:13 -05:00
.pylintrc Fix our evaluation formula 2016-02-19 15:30:54 -06:00
.travis.yml Add Python 3.6 to CI services 2017-01-15 11:26:12 -06:00
codecov.yml Add coverage reporting and uploading 2016-08-06 15:21:50 -05:00
CONTRIBUTING.rst Add CONTRIBUTING.rst file refering to webpage. 2017-05-15 11:09:07 +01:00
CONTRIBUTORS.txt Tidy up last few bits for performance improvement 2016-12-20 18:29:10 -06:00
dev-requirements.txt Switch out dev-requirements for tox 2016-03-17 14:56:54 -05:00
LICENSE Update the copyright in the LICENSE 2016-06-25 10:49:32 -05:00
MANIFEST.in Revert "Update release machinery to include manpages" 2016-11-14 09:49:03 -06:00
pytest.ini setup.cfg: Move pytest options to pytest.ini 2016-09-18 11:23:08 +03:00
README.rst Point documentation to http: instead of https: 2016-08-11 16:11:26 +00:00
setup.cfg Allow newer pycodestyle 2017-02-02 12:22:22 -08:00
setup.py Add lower bound on setuptools 2017-05-12 20:37:16 -05:00
tox.ini Change dogfood environment to use Python 2.7 2017-01-21 13:51:01 -06:00

========
 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``
- 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
=====

* `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
<https://coglib.com/~icordasc/>`_