# Ruff Linter and Formatter

> Ultra-fast Python linting and formatting using Ruff CLI with pyproject.toml configuration. Supports auto-fix, import sorting (isort-compatible), and rule selection from 800+ built-in rules.

- Skill: `agentskillexchange/ruff-linter-and-formatter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/ruff-linter-and-formatter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/ruff-linter-and-formatter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/ruff-linter-and-formatter

---


# Ruff Linter and Formatter

Ultra-fast Python linting and formatting using Ruff CLI with pyproject.toml configuration. Supports auto-fix, import sorting (isort-compatible), and rule selection from 800+ built-in rules.

## Prerequisites

Python

## Installation

Use the upstream install or setup path that matches your environment:
- uv tool install ruff@latest # Install Ruff globally.
- uv add --dev ruff # Or add Ruff to your project.
- pip install ruff
- pipx install ruff

Requirements and caveats from upstream:
- [![image](https://img.shields.io/pypi/v/ruff.svg)](https://pypi.python.org/pypi/ruff)
- [![image](https://img.shields.io/pypi/pyversions/ruff.svg)](https://pypi.python.org/pypi/ruff)
- An extremely fast Python linter and code formatter, written in Rust.

Basic usage or getting-started notes:
- [Getting Started](#getting-started)
- For more, see the [documentation](https://docs.astral.sh/ruff/).
- Ruff is available as [ruff](https://pypi.org/project/ruff/) on PyPI.

- Source: https://github.com/astral-sh/ruff
- Extracted from upstream docs: https://raw.githubusercontent.com/astral-sh/ruff/HEAD/README.md

## Documentation

- https://docs.astral.sh/ruff/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/ruff-linter-formatter-agent/)

