首页/ AI 技能 / @skilllib/skill-2117939930272416230
Skill站外收录 @skilllib/skill-2117939930272416230

linting

对 Python 代码进行静态分析与风格检查,自动识别语法错误、代码异味及格式问题,并支持一键修复可纠正的规范问题,提升代码一致性与可维护性。

0.0 (0) 27 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# 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). ```

评论 0

还没有评论,来抢沙发。