Ruff Patterns

Identify and resolve Ruff lint errors with structured patterns and solutions.

4|1|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/ruslan-korneev/claude-plugins --skill ruff-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Ruff Patterns
Source: https://github.com/ruslan-korneev/claude-plugins/tree/main/plugins/python/skills/ruff-patterns
Command: npx skills add https://github.com/ruslan-korneev/claude-plugins --skill ruff-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Ruff rule confusion and noqa abuse; this skill helps developers understand Ruff patterns and replace noqa with proper configurations and rule-based fixes.

Core Features & Use Cases

  • Understand common Ruff rules and recommended configurations for Python projects.
  • Provide migration guidance from other linters and explain per-file-ignores to maintain code quality.
  • Serve as a reference for Ruff patterns across FastAPI/backend projects with concrete examples.

Quick Start

Install Ruff in your project and apply the recommended configuration and per-file-ignores from the references.

Frequently Asked Questions about Ruff Patterns

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

FAQPage Schema
How do I fix Ruff lint errors without using noqa comments?

To fix Ruff lint errors without noqa, apply structured patterns and rule-specific solutions. This involves updating your ruff configuration and using per-file-ignore strategies to resolve violations rather than suppressing them inline.

What is the recommended Ruff configuration for Python backend projects?

The recommended Ruff configuration for Python backend projects includes structured per-file-ignores and rule-specific settings. This setup provides consistent linting across FastAPI codebases by targeting specific rule categories instead of using noqa.

Can I use Ruff for migrating from mypy static analysis?

Yes, you can use Ruff for migrating from mypy static analysis by applying migration guidance. The skill provides recommended configurations and rule-specific solutions to transition your Python project's linting workflow smoothly.

How do per-file-ignores work in Ruff for FastAPI codebases?

Per-file-ignores in Ruff allow specific rules to be bypassed for designated files in FastAPI codebases. This strategy maintains overall code quality by configuring exceptions globally in ruff settings rather than adding noqa comments.

Why should I avoid noqa abuse in Python static analysis?

You should avoid noqa abuse because it hides underlying code quality issues and leads to Ruff rule confusion. Replacing noqa with proper configurations and rule-based fixes ensures consistent static analysis across your Python project.