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

plain-fix

自动修复代码格式与规范问题,支持 Python 文件的类型注解导入、导入位置优化及文档字符串精简,兼顾安全修复与错误抑制策略,同时提供只检查不修改的验证模式。

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

Skills.MD

# Fix Code Issues ``` uv run plain fix [path] ``` Automatically fixes formatting and linting issues using ruff and biome. ## Code Style - Add `from __future__ import annotations` at the top of Python files - Keep imports at the top of the file unless avoiding circular imports - Don't include args/returns in docstrings if already type annotated Options: - `--unsafe-fixes` - Apply ruff unsafe fixes - `--add-noqa` - Add noqa comments to suppress errors ## Check Without Fixing ``` uv run plain code check [path] ``` Runs ruff, ty (type checking), biome, and annotation coverage checks without auto-fixing.

评论 0

还没有评论,来抢沙发。