ruff-operations

Lint and format Python code with Ruff across projects.

Updated Jun 18, 2025
One-click install
npx skills add https://github.com/ekozmdev/my-codex-cli-settings --skill ruff-operations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruff-operations
Source: https://github.com/ekozmdev/my-codex-cli-settings/tree/main/.agents/skills/ruff-operations
Command: npx skills add https://github.com/ekozmdev/my-codex-cli-settings --skill ruff-operations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill automates linting and formatting of Python code across projects using Ruff.

Core Features & Use Cases

  • Lint across the repository: run 'ruff check .' to identify issues.
  • Format and fix issues: run 'ruff format . --check' or 'ruff check . --fix' to apply changes.
  • Update operational docs: generate and document Ruff commands for AGENTS.md.

Quick Start

Run Ruff linting and formatting across your project with a minimal setup. Example: ruff check . --diff to preview changes, followed by ruff check . --fix and ruff format . --check to verify.

Frequently Asked Questions about ruff-operations

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

FAQPage Schema
How do I automate Python code linting and formatting across my project?

Automate Python code linting and formatting by running 'ruff check . --fix' to resolve issues and 'ruff format . --check' to verify changes across your repository. You can preview potential modifications first using 'ruff check . --diff'.

What is the best way to integrate Ruff checks into a CI pipeline?

Integrate Ruff into CI pipelines by executing 'ruff check .' to identify lint errors and 'ruff format . --check' to enforce formatting standards without applying changes. This ensures code quality gates fail when violations are detected.

How does Ruff formatting work with pre-commit checks?

Ruff formatting works with pre-commit checks by running 'ruff check . --fix' to automatically resolve lint violations and 'ruff format . --check' to verify code style compliance before changes are committed to the repository.

Do I need Ruff installed in my environment to use this automation skill?

Yes, you need the Ruff tool installed in your environment to use this automation skill. It relies on the Ruff CLI to execute linting and formatting commands across your Python project files.

Can I update AGENTS.md with standardized Ruff commands for my team?

Yes, you can update AGENTS.md with standardized Ruff commands. This skill generates and documents operational Ruff linting and formatting instructions to maintain consistent code quality practices across your project.

Why use Ruff instead of other Python code quality tools for repository linting?

Use Ruff for repository linting to consolidate code quality checks and formatting into a single fast tool. It replaces multiple Python linting dependencies by combining comprehensive rule enforcement with automated fixing capabilities.