一键导入
lint-and-verify
Use when checking formatting, linting, type errors, or security issues in the mobster repository — ruff, pylint, mypy, bandit, yamllint, pip-audit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when checking formatting, linting, type errors, or security issues in the mobster repository — ruff, pylint, mypy, bandit, yamllint, pip-audit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when preparing a new release of mobster — release-please, version bump, GitHub release, PyPI, container image
Use when running integration tests in the mobster repository — requires docker compose, tests OCI registry interactions, cosign, syft, and TPA upload flows
Use when running, filtering, debugging, or adding unit tests in the mobster repository — tox, pytest, coverage
Use when writing, updating, or adding documentation for mobster commands, features, or developer internals — covers file placement and mkdocs.yml nav rules
基于 SOC 职业分类
| name | lint-and-verify |
| description | Use when checking formatting, linting, type errors, or security issues in the mobster repository — ruff, pylint, mypy, bandit, yamllint, pip-audit |
| Check | Command | Single-file |
|---|---|---|
| Format + lint | tox -e ruff | tox -e ruff -- src/mobster/file.py |
| Auto-fix format/lint | tox -e ruff-fix | tox -e ruff-fix -- src/mobster/file.py |
| Static analysis | tox -e pylint | — |
| Type check (strict) | tox -e mypy | tox -e mypy -- src/mobster/file.py |
| Security scan | tox -e bandit | — |
| YAML lint | tox -e yamllint | — |
| Dependency audit | tox -e pip-audit | — |
| All checks | tox | — |
For tight iteration, run single-file checks after each change:
tox -e ruff -- src/mobster/file.py # format + lint (seconds)
tox -e mypy -- src/mobster/file.py # type check (seconds)
Run the full suite (tox) before opening a PR.
Any usage must be explicitruff-fix to auto-apply safe fixes