smithery.ai

ruff-linter

Pythonコードのリンタ、フォーマッタ、コードレビュー。Pythonファイル(.py)を編集・作成・修正した後に?

First seen Apr 30, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,700 B
  • docs SUMMARY.md 304 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Python コード品質チェック

Pythonコード修正後に実行する品質チェックとレビューのワークフロー。

必須ワークフロー

Pythonファイルを編集した後、以下を順番に実行:

1. フォーマット適用

uv run ruff format .

2. リンタ実行と自動修正

uv run ruff check --fix .

3. 残りのリンタエラー確認

uv run ruff check .

エラーがあれば手動で修正。

4. コードレビュー

変更したコードを確認し、以下の観点でレビュー:

  • 可読性: 変数名・関数名は適切か
  • ロジック: バグや edge case の見落としはないか
  • セキュリティ: インジェクション等の脆弱性はないか
  • パフォーマンス: 非効率な処理はないか
  • テスト: テストが必要な変更か

問題があれば修正し、再度 1〜3 を実行。

コマンドリファレンス

コマンド 用途
uv run ruff format . フォーマット適用
uv run ruff format --check . フォーマット確認のみ
uv run ruff check . リンタ実行
uv run ruff check --fix . リンタ + 自動修正

CI/CD

PRチェックでは以下を実行:

uv run ruff format --check .
uv run ruff check .