金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

format-lint-assistant

format-lint-assistant 是面向测试与安全的 Agent Skill,来自 dmitriiweb/extract-emails。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Run the project's formatter, linters, and mypy checks in the required order, fixing issues and managing any needed stub dependencies via uv.

SKILL.md

下载 MD ↓
nameformat-lint-assistant
descriptionRun the project's formatter, linters, and mypy checks in the required order, fixing issues and managing any needed stub dependencies via uv.

Format and Lint Assistant

Quick start

  • Run make format before linting to apply project formatting.
  • Run make lint; fix linter errors first, rerun make lint, then address any remaining mypy issues.
  • If mypy needs missing stubs/libs, add them with uv add --dev <package> so they land in pyproject.toml; never use mypy's install-missing-libraries command.
  • Keep rerunning make lint until it passes cleanly; share any unresolved issues.
  • See references/linting_rules.md for the exact workflow.

Workflow

1) Prepare and format
- Review the scope of files to format/lint.
- Run make format to apply formatting before linting.

2) Lint and iterate
- Run make lint.
- If linters fail, fix those issues first and rerun make lint to confirm the lint portion is clean.
- After lint fixes, address mypy errors reported by the same command, then rerun make lint to verify.

3) Manage dependencies
- When mypy reports missing libraries or type stubs, add the needed package with uv add --dev <package> so it updates the dev dependencies in pyproject.toml.
- Do not use mypy's automatic install-missing-libraries flag.

4) Validate and report
- Run make lint once more after all fixes to ensure a clean result.
- Summarize what was run, what was fixed, and call out any remaining issues.

来源:dmitriiweb/extract-emails · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本