金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

linting

linting 是面向测试与安全、效率工具的 Agent Skill,来自 OpenHands/software-agent-sdk。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

This skill helps lint Python code using ruff. Use when the user asks to "lint", "check code quality", or "fix style issues".

SKILL.md

下载 MD ↓
namepython-linting
descriptionThis skill helps lint Python code using ruff. Use when the user asks to "lint", "check code quality", or "fix style issues".
licenseMIT
compatibilityRequires Python and ruff
metadata{"author": "openhands", "version": "1.0"}
triggers["lint", "linting", "code quality", "style check", "ruff"]

Python Linting Skill

This skill provides instructions for linting Python code using ruff.

How to Lint

Run ruff to check for issues:

ruff check .

To automatically fix issues:

ruff check --fix .

Common Options

  • --select E,W - Only check for errors and warnings
  • --ignore E501 - Ignore line length errors
  • --fix - Automatically fix fixable issues

Example Output

example.py:1:1: F401 [*] `os` imported but unused
example.py:5:5: E302 Expected 2 blank lines, found 1
Found 2 errors (1 fixable).

来源:OpenHands/software-agent-sdk · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本