Code Quality

Format, lint, and type check Python projects with Ruff and Pyright.

8|1|Updated Jun 30, 2025
One-click install
npx skills add https://github.com/Vasallo94/obsidian-mcp-server --skill code-quality-vasallo94
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Quality
Source: https://github.com/Vasallo94/obsidian-mcp-server/tree/main/.agent/skills/code-quality
Command: npx skills add https://github.com/Vasallo94/obsidian-mcp-server --skill code-quality-vasallo94

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of maintaining code quality by handling formatting, linting, and type checking to ensure consistency across the codebase.

Core Features & Use Cases

  • Formatting & linting: Ruff-based formatting and lint rules to keep code clean and consistent.
  • Type checking: Pyright to detect type errors early and improve reliability.
  • Quality gates: Integrates into pre-commit hooks or CI pipelines to prevent bad code from merging.

Quick Start

Install and run the quality tools using the following steps:

  • uv run ruff format .
  • uv run ruff check . --fix
  • uv run pyright

Frequently Asked Questions about Code Quality

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

FAQPage Schema
How do I automate Python code formatting and linting with Ruff?

Automate Python code formatting and linting with Ruff by executing the tool via the uv run command, applying rules to clean, format, and fix codebase inconsistencies automatically.

How do I run Pyright type checking on a Python project?

Run Pyright type checking on a Python project by executing the tool through the uv run command to detect type errors early and improve overall code reliability.

Can I integrate code quality checks into a CI pipeline or pre-commit hook?

You can integrate these code quality checks into CI pipelines or pre-commit hooks, using Ruff and Pyright as quality gates to prevent bad code from merging into the main branch.

Do I need uv installed to run Ruff and Pyright for type checking and formatting?

You need uv installed because Ruff formatting, linting, and Pyright type checking are executed exclusively through uv run commands to access the required quality tools.

What is the best way to maintain consistent code quality in Python?

The best way to maintain consistent Python code quality is to automate checks using Ruff for formatting and linting alongside Pyright for type analysis, ensuring codebase consistency.