mirror of
https://github.com/xlionjuan/hermes-subagent-output-guide.git
synced 2026-11-16 22:37:50 +00:00
- bandit security scanning (+ nosec for intentional test assert) - vulture dead code detection (+ .vulture_whitelist.py) - just clean recipe for __pycache__ removal - just verify now runs lint→format→bandit→vulture→ty→pytest - all Chinese text replaced with English (玖璃→Kuri) - pyproject.toml hatch packages fix, pytest pythonpath cleanup - test fixture paths switched from hardcoded ~ to relative Path - AGENTS.md docs updated to match all new tooling
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
# ──────────────────────────────────────────────────────────────────────────────
|
|
# subagent-output-guide — task runner
|
|
# ──────────────────────────────────────────────────────────────────────────────
|
|
|
|
default: verify
|
|
|
|
# Run full verification suite: lint → format check → security → dead code → type check → tests
|
|
verify: lint format-check bandit vulture typecheck test
|
|
|
|
# Run tests
|
|
test:
|
|
uv run pytest
|
|
|
|
# Lint with ruff
|
|
lint:
|
|
uv run ruff check .
|
|
|
|
# Type check with ty
|
|
typecheck:
|
|
uv run ty check . --exclude .vulture_whitelist.py
|
|
|
|
# Security scan with bandit (project files only)
|
|
bandit:
|
|
uv run bandit -r __init__.py tests/ -c pyproject.toml
|
|
|
|
# Dead code detection with vulture
|
|
vulture:
|
|
uv run vulture . .vulture_whitelist.py --exclude '.venv,dist,.git,__pycache__'
|
|
|
|
# Format code in-place with ruff
|
|
format:
|
|
uv run ruff format .
|
|
|
|
# Check formatting without modifying files
|
|
format-check:
|
|
uv run ruff format --check .
|
|
|
|
# Remove all __pycache__ directories and .pyc files
|
|
clean:
|
|
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null; find . -type f -name '*.pyc' -delete
|