Python QC (pytest / lint)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Python QC (pytest / lint)
- perks
- [ "test", "lint" ]
- skill
- py_qc
02 资源文件 16
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.7 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json1.6 KB
- 参考文档ledger.json361 B
- 参考文档perks.json326 B
- 参考文档perks/lint/manifesto.json395 B
- 参考文档perks/lint/metadata.json358 B
- 参考文档perks/lint/src/contracts.json393 B
- 脚本perks/lint/src/py_lint.sh577 B
- 参考文档perks/lint/test/case.json249 B
- 参考文档perks/test/manifesto.json461 B
- 参考文档perks/test/metadata.json365 B
- 参考文档perks/test/src/contracts.json470 B
- 脚本perks/test/src/py_test.sh420 B
- 参考文档perks/test/test/case.json318 B
03 SKILL.md 正文
py_qc — Python QC
Run a Python project's own quality gates through the governed channel: pytest and ruff (flake8
fallback). Read-only with respect to the project — reports land in record_store.
What to look out for
Each tool emits one line of structured JSON with the pass/fail counts (the audit + debug log) and
writes the full tool output under record_store. LOGS TO CHECK: that line + pytest.out /
lint.out + the executor run-ledger. A failing suite exits non-zero — the executor records the
failure; read pytest.out before re-running.
Perks
| perk | tool | nature |
|---|---|---|
test |
py_test |
runs pytest — read-only / safe |
lint |
py_lint |
runs ruff (fallback flake8) — read-only / safe |
test— setPROJECT_DIR(+ optionalTEST_DIR,PYTEST_ARGS); outputpytest.out.lint— setPROJECT_DIR(+ optionalLINT_TARGET); outputlint.out. Needs ruff or flake8 installed in the environment.
For pure-ast QC with no dependencies (dead code / docstrings / test references), see codebaseqc.
How to use it
Pick a perk, copy ledger.json → task-ledger.json, fill its vars + record_store, then
validate → compose → compile → oversight → executor.
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.