156: Flake8: Python linting framework with Pyflakes, pycodestyle, McCabe, and more - Anthony Sottile
Flake8 is a command-line tool for linting Python projects.
By default, it includes lint checks provided Pyflakes, pycodestyle, and McCabe
It's also a platform, and allows plugins to extend the checks.
Flake8 will run third-party extensions if they are found and installed.
By default, it includes lint checks provided Pyflakes, pycodestyle, and McCabe
It's also a platform, and allows plugins to extend the checks.
Flake8 will run third-party extensions if they are found and installed.
But what does all of that mean?
Anthony Sottile is a maintainer of flake8 and has kindly offered to explain it to us.
Links:
- Flake8: Your Tool For Style Guide Enforcement
- pyflakes
- pycodestyle
- mccabe
- pyflakes/messages.py
- flake8 Error / Violation Codes
- wemake-python-styleguide
- flake8-typing-imports
- tox automation project
- Nox
- pre-commit
Sponsored by:
- The Complete pytest course is now a bundle, with each part available separately.
- pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.
- Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CI
- Then pytest Booster Rockets can help with advanced parametrization and building plugins.
- Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you.
Creators and Guests

Guest
Anthony Sottile
Anthony is a core contributor and long time user of pytest, the best automated testing framework on the planet. Anthony also maintains a few other useful tools including pre-commit, flake8 and tox.
