OpenParable
Skip to content
← Back to skills

Ruff Linter

Testing & Quality
ruff-linter

Ruff Linter is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Pythonコードのリンタ、フォーマッタ、コードレビュー。Pythonファイル(.py)を編集・作成・修正した後に必ず実行する。ruffによる品質チェックとフォーマット、さらにコードレビューを行い問題があれば修正する。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/ruff-linter/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ruff-linter, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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 .