Skip to main content

python-linting

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

来源信息

仓库
OpenHands/software-agent-sdk
最近来源活动
2026年1月7日 02:27
检测到的 SKILL.md 语言
英语
星标
1,260
分支
665

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
python-linting
description
This skill helps lint Python code using ruff. Use when the user asks to "lint", "check code quality", or "fix style issues".
license
MIT
compatibility
Requires 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: ```bash ruff check . ``` To automatically fix issues: ```bash 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). ```
在 GitHub 查看