ruff

Lint and format Python code with ruff check and ruff format.

1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/aaaxn/skills --skill ruff-aaaxn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruff
Source: https://github.com/aaaxn/skills/tree/main/ruff
Command: npx skills add https://github.com/aaaxn/skills --skill ruff-aaaxn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ruff provides fast linting and formatting for Python projects, consolidating multiple tools into a single workflow to improve code quality and consistency.

Core Features & Use Cases

  • Fast linting and formatting that replaces multiple tools like Flake8, Black, and isort.
  • Configurable via pyproject.toml or ruff.toml and supports targeted checks, diffs, and selective fixes.
  • Use case: When starting a new Python project, integrate Ruff to enforce coding standards across the repository.

Quick Start

Install Ruff in your project and run ruff check to identify issues, then run ruff format to apply fixes.

Frequently Asked Questions about ruff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Python code linting and formatting for a new project?

To set up Python linting and formatting, configure your rules in a pyproject.toml or ruff.toml file, then run the check command to identify issues and the format command to apply fixes automatically.

Can I configure Python static analysis to only apply selective fixes?

Yes, you can configure Python static analysis to apply selective fixes by running the check command with specific options, allowing you to review diffs and control whether to apply safe or unsafe fixes.

What is the best way to replace multiple Python code quality tools like Black and isort?

The best way to replace multiple Python code quality tools is to use a single fast tool that consolidates linting and formatting, enforcing consistent checks across development and CI workflows.

Does Ruff support large codebases for continuous integration?

Yes, Ruff supports large codebases for continuous integration by providing fast execution and configurable project rules, ensuring consistent code quality checks during automated maintenance.

How do I view code changes before applying Python formatting fixes?

To view code changes before applying Python formatting, run the check or format commands with the diff option, which displays the proposed modifications without writing them to your files.