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
آخر نشاط في المصدر
٧ يناير ٢٠٢٦ في ٠٢:٢٧
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١٬٢٦٠
التفرعات
٦٦٥

خيارات التثبيت

يُحدَّد 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