{
 "kind": "tool",
 "slug": "flake8",
 "path": "tools/flake8/",
 "name": "flake8",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Linting and formatting",
   "tools/lint-format/"
  ]
 ],
 "lead": "Modular Python linter combining PEP 8 style checking, PyFlakes and complexity analysis.",
 "chips": [
  {
   "label": "Linting and formatting",
   "path": "tools/lint-format/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install flake8"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pycqa/flake8"
  },
  {
   "label": "Website",
   "href": "https://github.com/pycqa/flake8"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://github.com/pycqa/flake8"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 4, 2026",
   "note": "",
   "src": "https://github.com/pycqa/flake8"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "44 projects",
   "status": "info",
   "sub": "#18 of 83 in its category",
   "note": "Dependency in 44 public GitHub projects set up for AI coding agents that we scanned (0.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What flake8 does",
   "parts": [
    {
     "t": "prose",
     "text": "Modular Python linter combining PEP 8 style checking, PyFlakes and complexity analysis."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "flake8 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "62",
       "of": "/ 100",
       "l": "Gid Score, #852 overall"
      },
      {
       "n": "9.5M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "3,837",
       "l": "GitHub stars"
      },
      {
       "n": "44",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How flake8 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "flake8 is a dependency in 44 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.7% of the 1,623 Python ones), #18 of 83 in linting and formatting.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 282; those are left out of every share on this page.",
      "The most used alternative in our scan is Black (78 projects).",
      "Projects that use it most often also use Black (97.7%), pytest (93.2%), python-dotenv (70.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "26 projects, 0.9%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "18 projects, 0.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "9 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 97.7% of its projects",
       "v": "Black",
       "path": "tools/black/"
      },
      {
       "l": "In 93.2% of its projects",
       "v": "pytest",
       "path": "tools/pytest/"
      },
      {
       "l": "In 70.5% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 63.6% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 59.1% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 52.3% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "mypy",
       "path": "tools/mypy/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about flake8",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/asottile",
        "Tidelift: https://tidelift.com/funding/github/pypi/flake8",
        "34 GitHub sponsors"
       ]
      },
      {
       "title": "More in Linting and formatting",
       "path": "tools/lint-format/",
       "items": [
        {
         "text": "ESLint",
         "path": "tools/eslint/"
        },
        {
         "text": "Prettier",
         "path": "tools/prettier/"
        },
        {
         "text": "Biome",
         "path": "tools/biomejs/"
        },
        {
         "text": "oxlint",
         "path": "tools/oxlint/"
        },
        {
         "text": "oxfmt",
         "path": "tools/oxfmt/"
        },
        {
         "text": "Knip",
         "path": "tools/knip/"
        },
        {
         "text": "stylelint",
         "path": "tools/stylelint/"
        },
        {
         "text": "ESLint Import Resolver TypeScript",
         "path": "tools/eslint-import-resolver-typescript/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "flake8",
       "me": true,
       "facts": [
        "MIT",
        "Gid 62",
        "9.5M/wk"
       ]
      },
      {
       "name": "Black",
       "why": "Uncompromising Python code formatter enforcing consistent style automatically.",
       "path": "tools/black/",
       "facts": [
        "MIT",
        "Gid 76",
        "25.7M/wk"
       ]
      },
      {
       "name": "Ruff",
       "why": "Extremely fast Python linter and code formatter written in Rust for modern projects.",
       "path": "tools/ruff/",
       "facts": [
        "MIT",
        "Gid 80",
        "108M/wk"
       ]
      },
      {
       "name": "Pylint",
       "why": "Python static code analyzer for detecting errors and style issues.",
       "path": "tools/pylint/",
       "facts": [
        "GPL-2.0-or-later",
        "Gid 61",
        "9.1M/wk"
       ]
      }
     ],
     "more": "Compare flake8 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install flake8"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for flake8 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi flake8"
  ],
  [
   "Category",
   "Linting and formatting"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "62.2"
  ],
  [
   "Rank in category",
   "#18 of 83"
  ],
  [
   "GitHub",
   "pycqa/flake8"
  ],
  [
   "Last change",
   "Nov 4, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pycqa.png"
}