ruff

Lint and format Python projects using pyproject.toml or ruff.toml configurations.

Updated Aug 29, 2025
One-click install
npx skills add https://github.com/DDTully/dotfiles --skill ruff-ddtully
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruff
Source: https://github.com/DDTully/dotfiles/tree/main/skills/.agent_skills/python/ruff
Command: npx skills add https://github.com/DDTully/dotfiles --skill ruff-ddtully

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lint and format Python code quickly and reliably to help maintain code quality and consistency across projects.

Core Features & Use Cases

  • Linting checks for common Python issues and style violations
  • Automatic formatting to apply consistent style
  • Migration guidance from Flake8, Black, isort, and others
  • Flexible configuration via pyproject.toml or ruff.toml

Quick Start

Install Ruff in your project and run ruff check to identify issues, then 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 lint and format Python code to enforce style and quality?

To lint and format Python code, run a check command to identify style violations and issues, then run a format command to apply consistent fixes automatically across your project modules.

What is the best way to configure Python linting for a large repository?

Configuring Python linting for large repositories is best handled using pyproject.toml or ruff.toml files, allowing you to define flexible code quality rules and style settings consistently across the entire codebase.

Can I migrate my Python code quality tools to a single linter and formatter?

Yes, you can migrate existing Python code quality tools to a single linter and formatter. Migration guidance is provided for transitioning from Flake8, Black, and isort configurations seamlessly.

Does Python linting work with pyproject.toml configurations?

Python linting works directly with pyproject.toml configurations, satisfying project settings natively to enforce code quality and apply automatic formatting without requiring separate configuration files.

Why use a single tool for both Python linting and formatting?

Using a single tool for Python linting and formatting ensures speedy code quality enforcement and consistent style application, reducing the need to manage multiple dependencies across varying project sizes.