{
 "kind": "tool",
 "slug": "ruff",
 "path": "tools/ruff/",
 "name": "Ruff",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Linting and formatting",
   "tools/lint-format/"
  ]
 ],
 "lead": "Extremely fast Python linter and code formatter written in Rust for modern projects.",
 "chips": [
  {
   "label": "Linting and formatting",
   "path": "tools/lint-format/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install ruff"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/astral-sh/ruff"
  },
  {
   "label": "Website",
   "href": "https://docs.astral.sh/ruff"
  }
 ],
 "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 expression.",
   "src": "https://github.com/astral-sh/ruff"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 19, 2026. ",
   "src": "https://github.com/astral-sh/ruff"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "54 projects",
   "status": "info",
   "sub": "#16 of 83 in its category",
   "note": "Dependency in 54 public GitHub projects set up for AI coding agents that we scanned (0.9%).",
   "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 Ruff does",
   "parts": [
    {
     "t": "prose",
     "text": "Extremely fast Python linter and code formatter written in Rust for modern projects."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Ruff popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "80",
       "of": "/ 100",
       "l": "Gid Score, #99 overall"
      },
      {
       "n": "108M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "51.4K",
       "l": "GitHub stars"
      },
      {
       "n": "54",
       "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 Ruff is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Ruff is a dependency in 54 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.3% of the 1,623 Python ones), #16 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 338; 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 pytest (81.5%), Pydantic (70.4%), Uvicorn (59.3%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "34 projects, 1.0%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "31 projects, 1.0%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "22 projects, 0.9%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "5 projects, 1.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 81.5% of its projects",
       "v": "pytest",
       "path": "tools/pytest/"
      },
      {
       "l": "In 70.4% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 59.3% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 53.7% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 51.9% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 44.4% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 42.6% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Ruff",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Black vs Ruff",
         "note": "used together in 19 projects",
         "path": "tools/compare/black-vs-ruff/"
        }
       ]
      },
      {
       "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": "Ruff",
       "me": true,
       "facts": [
        "MIT",
        "Gid 80",
        "108M/wk"
       ]
      },
      {
       "name": "Black",
       "why": "Uncompromising Python code formatter enforcing consistent style automatically.",
       "path": "tools/black/",
       "facts": [
        "MIT",
        "Gid 76",
        "25.7M/wk"
       ]
      },
      {
       "name": "flake8",
       "why": "Modular Python linter combining PEP 8 style checking, PyFlakes and complexity analysis.",
       "path": "tools/flake8/",
       "facts": [
        "MIT",
        "Gid 62",
        "9.5M/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"
       ]
      },
      {
       "name": "pycodestyle",
       "why": "Python style guide checker that enforces PEP 8 code style conventions.",
       "path": "tools/pycodestyle/",
       "facts": [
        "MIT",
        "Gid 62",
        "14M/wk"
       ]
      },
      {
       "name": "Pyflakes",
       "why": "Static code analyzer that checks Python for errors without executing.",
       "path": "tools/pyflakes/",
       "facts": [
        "MIT",
        "Gid 56",
        "12.1M/wk"
       ]
      },
      {
       "name": "autoflake",
       "why": "Removes unused imports and variables from Python code.",
       "path": "tools/autoflake/",
       "facts": [
        "MIT",
        "Gid 38",
        "1.1M/wk"
       ]
      }
     ],
     "more": "Compare Ruff with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install ruff"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Ruff yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi ruff"
  ],
  [
   "Category",
   "Linting and formatting"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "80.2"
  ],
  [
   "Rank in category",
   "#16 of 83"
  ],
  [
   "GitHub",
   "astral-sh/ruff"
  ],
  [
   "Last change",
   "Nov 24, 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/astral-sh.png"
}