flake8
« Back to VersTracker
Description:
Lint your Python code for style and logical errors
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @PyCQA  |  formulae.brew.sh
Category: Developer tools
Tags: python linter code-quality pep8 development
Install: brew install flake8
About:
Flake8 is a Python tool that checks your code against Python style guide (PEP 8), programming errors, and complexity issues. It wraps the pyflakes linter, pycodestyle style checker, and McCabe complexity checker into a single command. This provides developers with immediate feedback to maintain clean, readable, and maintainable codebases.
Key Features:
  • Combines pyflakes, pycodestyle, and McCabe complexity checker
  • Extensible plugin system for custom checks and formatters
  • Fast execution with incremental linting support
  • Clear, actionable error reporting with line numbers and codes
Use Cases:
  • Enforcing PEP 8 style guidelines across Python projects
  • Pre-commit hooks to catch errors before code review
  • CI/CD pipelines for automated code quality checks
  • IDE integration for real-time linting feedback
Alternatives:
  • ruff – Much faster Rust-based linter with similar functionality
  • pylint – More comprehensive but slower with stricter defaults
  • black – Auto-formatter rather than linter; focuses on formatting not error detection
Version History
Detected Version Rev Change Commit
Oct 10, 2024 1:26am 0 VERSION_BUMP 41fab5b7
Oct 9, 2024 6:36pm 0 VERSION_BUMP 001b6c18