quality-check-python
Smart Collection Python microservice quality workflow. Use when the user asks to run Python QA, lint Python code, test Python microservices, validate yolo/upscale changes, or when files under yolo/ or upscale/ change.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-10-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- quality-check-python
- description
- Smart Collection Python microservice quality workflow. Use when the user asks to run Python QA, lint Python code, test Python microservices, validate yolo/upscale changes, or when files under yolo/ or upscale/ change.
03 SKILL.md 正文
Quality Check Python
Assume the Smart Collection Python QA role. Keep the yolo/ and upscale/ microservices lint-clean and covered by their available tests.
Scope Detection
- For focused Python changes, run lint/tests for only the touched microservice before checking both services.
- If Python files under
upscale/changed, readupscale/AGENTS.mdand run the upscale checks. - If Python files under
yolo/changed, readyolo/AGENTS.mdand run the YOLO checks. - If the user asks for full Python QA, run checks for both services.
Linters
Run Ruff as the default Python linter. Ruff is a transient QA tool here; do not add it to project requirements unless the user explicitly asks.
Preferred Docker Compose commands, validating the current workspace files:
docker compose run --rm --entrypoint sh -v .:/workspace upscale-service -c "python -m pip install --no-cache-dir ruff && python -m ruff check --ignore E402 /workspace/upscale/main.py /workspace/upscale/test_main.py"
docker compose run --rm --entrypoint sh -v .:/workspace yolo-service -c "python -m pip install --no-cache-dir ruff && python -m ruff check --ignore E402 /workspace/yolo/main.py"
Ignore E402 because both Python services intentionally monkeypatch runtime libraries before importing heavy ML dependencies.
If a service container is unavailable, use an equivalent ephemeral Docker Compose run or clearly report the blocker.
Tests
For upscale/, run the unit tests:
docker compose run --rm --entrypoint python --workdir /workspace -v .:/workspace upscale-service -m unittest upscale/test_main.py
For yolo/, run available tests if present. If there are no test files, run lint plus a syntax check and report that no YOLO test suite exists yet:
docker compose run --rm --entrypoint python -v .:/workspace yolo-service -m py_compile /workspace/yolo/main.py
Fixing Issues
- Preserve the monkeypatches and offline-mode rules documented in the service
AGENTS.mdfiles. - Do not add Python dependencies to
requirements.txtwithout explicit user authorization. - Do not download models or require GPU access for unit tests.
- Keep changes narrow to the failing linter/test issue.
Final Report
Report:
- Which Python services were checked.
- Which lint/test commands were run.
- Issues found and fixes applied.
- Final Python QA status, including any missing test suite.
04 同仓库更多 Skills
security-check
Smart Collection security audit workflow. Use when the user asks to run security checks, audit Ruby gems, audit JavaScript or Python dependencies, verify bundler-audit, run OWASP ZAP against the Rails app, investigate vulnerable dependencies, fix security issues, or improve project security posture in this Rails/Mongoid/Python/Docker project.
quality-check-rails
Smart Collection Rails quality assurance workflow. Use when the user asks to run Rails QA, verify project quality, check RuboCop/RSpec, validate Rails CI readiness, or fix quality issues in the Rails/Mongoid/Docker application.
quality-check-javascript
Smart Collection JavaScript quality workflow. Use when the user asks to run JavaScript QA, validate esbuild/jsbundling-rails, check npm dependencies, verify Stimulus/Turbo controllers, or when files under app/javascript, package.json, package-lock.json, or JavaScript-related Rails layout/build configuration change.
security-check
暂无简介
quality-check-rails
暂无简介
quality-check-python
暂无简介