ruff

Lint, format, and fix Python codebases with ruff and pyproject.toml configuration.

3|1|Updated Jun 20, 2020
One-click install
npx skills add https://github.com/gmolveau/dotfiles --skill ruff-gmolveau
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruff
Source: https://github.com/gmolveau/dotfiles/tree/main/.ia/skills/ruff
Command: npx skills add https://github.com/gmolveau/dotfiles --skill ruff-gmolveau

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need for efficient and rapid code quality checks and style enforcement in Python projects, streamlining development workflows.

Core Features & Use Cases

  • Linting: Identifies and reports code style violations, potential bugs, and anti-patterns.
  • Formatting: Automatically reformats Python code to adhere to a consistent style guide.
  • Fixing: Automatically corrects many identified issues, saving developer time.
  • Use Case: When working on a Python project, use this Skill to ensure code adheres to project standards and to quickly fix common style issues before committing.

Quick Start

Use the ruff skill to check and fix all Python files in the current directory for linting issues.

Frequently Asked Questions about ruff

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

FAQPage Schema
How do I automatically lint and format Python code in my project?

Python linting with this Skill identifies code style violations, potential bugs, and anti-patterns using the ruff tool. It helps enforce code quality standards and streamline development workflows by reporting issues across your Python files.

Can I configure Python linting rules using pyproject.toml?

Yes, Python linting integrates directly with pyproject.toml for configuration. This allows you to define rule selections, ignore specific errors, and manage formatting settings centrally within your project configuration file.

How do I automatically fix Python code style violations before committing?

To ignore specific Python linting errors, you can use various command-line options supported by the ruff tool. This allows you to bypass specific rules or exclude certain files from code quality checks during your development workflow.

What is the best way to enforce consistent Python formatting across a large codebase?

The best way to enforce consistent Python formatting is using this Skill to automatically reformat your code. It rapidly checks code quality and applies a consistent style guide across all files in your directory.

Does this Python linting tool support selecting specific rules and ignoring errors?

Yes, this Python linting tool supports various command-line options for rule selection and ignoring specific errors. You can customize which code quality checks are active and exclude certain violations as needed.