flake8 7.2.0


pip install flake8

  Latest version

Released: Mar 29, 2025

Project Links

Meta
Author: Tarek Ziade
Maintainer: Ian Stapleton Cordasco
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Framework
  • Flake8

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Software Development :: Libraries :: Python Modules
  • Software Development :: Quality Assurance
build status pre-commit.ci status 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 for how to install and get started with Flake8.

Frequently Asked Questions

Flake8 maintains an FAQ 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.

Maintenance

Flake8 was created by Tarek Ziadé and is currently maintained by anthony sottile and Ian Cordasco

7.2.0 Mar 29, 2025
7.1.2 Feb 16, 2025
7.1.1 Aug 04, 2024
7.1.0 Jun 15, 2024
7.0.0 Jan 05, 2024
6.1.0 Jul 29, 2023
6.0.0 Nov 23, 2022
5.0.4 Aug 03, 2022
5.0.3 Aug 01, 2022
5.0.2 Aug 01, 2022
5.0.1 Jul 31, 2022
5.0.0 Jul 30, 2022
4.0.1 Oct 11, 2021
4.0.0 Oct 11, 2021
3.9.2 May 08, 2021
3.9.1 Apr 16, 2021
3.9.0 Mar 14, 2021
3.8.4 Oct 02, 2020
3.8.3 Jun 08, 2020
3.8.2 May 22, 2020
3.8.1 May 12, 2020
3.8.0 May 11, 2020
3.8.0a2 Apr 24, 2020
3.8.0a1 Apr 24, 2020
3.7.9 Oct 28, 2019
3.7.8 Jul 08, 2019
3.7.7 Feb 25, 2019
3.7.6 Feb 18, 2019
3.7.5 Feb 04, 2019
3.7.4 Feb 01, 2019
3.7.3 Jan 31, 2019
3.7.2 Jan 30, 2019
3.7.1 Jan 30, 2019
3.7.0 Jan 30, 2019
3.6.0 Oct 24, 2018
3.5.0 Oct 23, 2017
3.4.1 Jul 28, 2017
3.4.0 Jul 27, 2017
3.3.0 Feb 07, 2017
3.3.0.dev0 Feb 07, 2017
3.2.1 Nov 21, 2016
3.2.0 Nov 14, 2016
3.1.1 Nov 14, 2016
3.1.0 Nov 14, 2016
3.0.4 Aug 08, 2016
3.0.3 Jul 30, 2016
3.0.2 Jul 27, 2016
3.0.2.dev1 Jul 27, 2016
3.0.2.dev0 Jul 27, 2016
3.0.1 Jul 26, 2016
3.0.0 Jul 25, 2016
3.0.0b2 Jun 29, 2016
3.0.0b1 Jun 25, 2016
2.6.2 Jun 25, 2016
2.6.1 Jun 25, 2016
2.6.0 Jun 16, 2016
2.5.5 Jun 14, 2016
2.5.4 Feb 11, 2016
2.5.3 Feb 11, 2016
2.5.2 Jan 30, 2016
2.5.1 Dec 08, 2015
2.5.0 Oct 26, 2015
2.4.1 May 18, 2015
2.4.0 Mar 08, 2015
2.3.0 Jan 04, 2015
2.2.5 Oct 20, 2014
2.2.4 Oct 09, 2014
2.2.3 Aug 26, 2014
2.2.2 Jul 05, 2014
2.2.1 Jun 30, 2014
2.2.0 Jun 23, 2014
2.1.0 Oct 26, 2013
2.0 Feb 23, 2013
1.7.0 Dec 21, 2012
1.6.2 Nov 25, 2012
1.6.1 Nov 25, 2012
1.6 Nov 17, 2012
1.5 Oct 13, 2012
1.4 Jul 10, 2012
1.3.1 May 19, 2012
1.3 Mar 22, 2012
1.2 Mar 10, 2012
1.1 Feb 14, 2012
1.0 Nov 29, 2011
0.9 Nov 09, 2011
0.8 Feb 27, 2011
0.7 Feb 18, 2011
0.6 Feb 15, 2011
0.5 Feb 13, 2011
0.4 Feb 08, 2011
0.3 Feb 08, 2011
0.2 Jan 26, 2011
0.1 Aug 12, 2010

Wheel compatibility matrix

Platform Python 2 Python 3
any

Files in release

Extras: None
Dependencies:
mccabe (<0.8.0,>=0.7.0)
pycodestyle (<2.14.0,>=2.13.0)
pyflakes (<3.4.0,>=3.3.0)