formatting-and-linting

Format and lint Python code with Ruff for consistent style.

13|1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/OliverSieweke/occhio --skill formatting-and-linting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: formatting-and-linting
Source: https://github.com/OliverSieweke/occhio/tree/main/skills/formatting-and-linting
Command: npx skills add https://github.com/OliverSieweke/occhio --skill formatting-and-linting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ruff-based tooling standardizes formatting and linting across Python projects, reducing style drift and keeping codebases clean and consistent.

Core Features & Use Cases

  • Standardizes formatting with Ruff across Python codebases.
  • Enforces linting rules and detects potential issues early.
  • Cleans notebook outputs before commits to keep diffs tidy.

Quick Start

Format and lint your Python project with Ruff using the prepared uv commands.

Frequently Asked Questions about formatting-and-linting

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

FAQPage Schema
How do I format and lint Python code using Ruff?

To format and lint Python code using Ruff, you need a Ruff configuration file (ruff.toml) and a preconfigured workflow. The Skill then formats, checks, and clears notebook outputs via prepared uv commands.

Can I use Ruff to clean Jupyter notebook outputs before committing?

Yes, Ruff can clean Jupyter notebook outputs before commits to keep diffs tidy. The Skill includes a preconfigured workflow specifically designed to format, check, and clear notebook outputs.

What is the best way to standardize Python formatting and linting across a project?

Standardizing Python formatting and linting is best achieved with Ruff-based tooling. It enforces consistent style rules and detects potential issues early, reducing style drift and keeping codebases clean.

Does Ruff formatting and linting work in CI pipelines and PR checks?

Yes, Ruff formatting and linting works in CI pipelines and PR checks. The Skill is applicable to local development, pull request checks, and continuous integration across Python projects and notebooks.

Do I need a ruff.toml configuration file to run Python linting checks?

Yes, you need a Ruff configuration file (ruff.toml) to run Python linting checks. The Skill requires this preconfigured workflow to properly format, check, and clear notebook outputs.

Why does my Python code have style drift between different contributors?

Python code experiences style drift without standardized formatting rules. Ruff-based tooling solves this by enforcing consistent formatting and linting across the codebase, ensuring all contributors follow the same style.