Skip to main content

lint

Run and fix the repository static analysis suite.

来源信息

仓库
ethereum/execution-specs
最近来源活动
2026年9月15日 16:14
检测到的 SKILL.md 语言
英语
星标
1,203
分支
526

安装方式

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

检查来源文件

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

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
lint
description
Run and fix the repository static analysis suite.
# Lint Run the full static analysis suite and fix issues. This matches the CI check on every PR. ## Step 1: Run the Full Check ```bash just static ``` This runs ruff, mypy, codespell, ethereum-spec-lint, and actionlint in one pass. If everything passes, you're done. ## Step 2: Auto-Fix Formatting and Lint Issues If static checks report ruff errors, run the fix recipe first — it resolves most issues automatically: ```bash just fix ``` ## Step 3: Resolve Remaining Issues Manually After auto-fix, re-run to see what's left: ```bash just static ``` - **Remaining ruff issues**: fix manually (auto-fix can't handle all rules) - **mypy errors**: fix type annotations, add missing types, correct signatures - **codespell errors**: fix typos, or add intentional words via `just whitelist <word>` - **ethereum-spec-lint errors**: fix import isolation violations (see `/implement-eip` for import rules) - **actionlint errors**: fix workflow YAML issues (see `/edit-workflow`) ## Step 4: Final Verification Re-run until clean: ```bash just static ```
在 GitHub 查看