Skip to content

v0.2.0 — First Release

Choose a tag to compare

@frankyxhl frankyxhl released this 22 Mar 17:03
· 31 commits to main since this release

dr-huatuo v0.2.0

Code quality diagnosis toolkit for Python.

Features

  • 5-Dimension Quality Profile: Maintainability (MI), Complexity (cognitive + nesting), Code Style (ruff + pylint), Documentation (docstrings + comments), Security (PASS/WARN/FAIL gate)
  • Unified CLI: dr-huatuo check, dr-huatuo report, dr-huatuo version
  • CI Quality Gate: --fail-on D exits non-zero for CI/CD integration
  • Literature-Backed Thresholds: McCabe, SonarSource, Microsoft/SEI with evidence tagging
  • 25 Static Metrics: ruff, radon, bandit, mypy, pylint, complexipy
  • HTML Reports: Interactive complexity drilldown with source code view
  • Dataset Annotation Pipeline: batch labeling for ML training data (JSONL)
  • Near-Duplicate Detection: MinHash/LSH + Union-Find deduplication

Install

pip install dr-huatuo
dr-huatuo check src/

Stats

  • 504 tests across Python 3.11/3.12/3.13
  • 10 source modules in src/dr_huatuo/