Hasty Briefsbeta

Show HN: Pyscn – Python code quality analyzer for vibe coders

5 hours ago
  • #code-analysis
  • #python
  • #maintainability
  • pyscn performs structural analysis to maintain codebase quality.
  • Features include CFG-based dead code detection, clone detection with APTED + LSH, coupling metrics (CBO), and cyclomatic complexity analysis.
  • Supports fast analysis at 100,000+ lines/sec, built with Go + tree-sitter.
  • Can generate HTML or JSON reports, with options to select specific analyses (complexity, deps, deadcode).
  • Includes CI-friendly quality gate with custom thresholds.
  • Configuration via .pyscn.toml or pyproject.toml.
  • Installation options: pipx (recommended), uvx, or from source.
  • GitHub Actions integration example provided for automated code quality checks.
  • Open-source under MIT License, with development guide and architecture details available.