Python 代码 Lint 检查
python-linting
此技能帮助使用 ruff 对 Python 代码进行静态检查(lint)。当用户要求"lint"、"检查代码质量"或"修复样式问题"时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1.4k
- Forks
- 781
01 前言 Front Matter
- name
- python-linting
- license
- MIT
- metadata
- { "author": "openhands", "version": "1.0" }
- triggers
- [ "lint", "linting", "code quality", "style check", "ruff" ]
- description
- This skill helps lint Python code using ruff. Use when the user asks to "lint", "check code quality", or "fix style issues".
- compatibility
- Requires Python and ruff
03 SKILL.md 正文
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).
04 同仓库更多 Skills
verify-sdk
This skill should be used to "verify SDK behavior", "check an SDK change against the feature map", "run the SDK feature map", "maintain the SDK feature map", or "run the daily SDK map pass". It holds the maintained map of what the OpenHands SDK does in-process (agent loop, LLMs, conversations, events, condensers, skills, plugins, MCP, hooks, sub-agents, critic, security, tools, workspaces, settings, observability, ACP), the control-sdk driver its recipes use, and sdk-map (check, owners, baseline, run, report).
固定位置组件发现示例
only
该格式在固定位置发现的唯一组件。
禁止发现技能示例
never
绝不可被发现;清单(manifest)会首先被拒绝。
正常技能加载示例
good
当损坏的同级技能被跳过时正常加载。
损坏技能加载示例
broken
暂无简介
清单容错加载
ok
尽管存在两处非致命的清单违规,仍会加载。