CytoScnPy

Rust static analyzer for Python dead code, security issues and quality metrics

A Rust analyzer with a Python package, CLI, GitHub Action and MCP server finding unused functions, classes, imports and variables across modules, aware of Flask, Django, FastAPI and Pydantic, and adds taint analysis, secret scanning, clone detection, complexity metrics and a previewed dead-code fix.

  • 0.85Dead code F1, 164 items
  • 0.91 vs 0.69Recall vs Vulture
  • 1.9 MBPeak memory

Trade-offs

  • It favors recall over precision: 0.91 recall at 0.79 precision on the suite, so it misses less dead code than Vulture or Ruff but leaves 39 false positives to review.
  • Auto-fix previews by default and changes files only with --apply, so removing dead code is a deliberate second step.

Q&A1

For unused imports, yes, and the project recommends Ruff's F401 there. Across all five dead-code types Ruff found 37 of 164 seeded items, against 149 for CytoScnPy.

Reviews

Loading reviews

    More in Ruff

    See all 4 →
    • polyOne Rust binary that lints and formats about 30 languages
    • codehoundPython static analyzer for async and correctness bugs that pass review
    • PymetricaArchitecture-aware code metrics for Python codebases
    • colablinterIPython magics that run Ruff on Jupyter and Colab cells

    More in Linters & formatters

    See all 19 →
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • augurPolicy-based linter for OpenTelemetry Collector configurations
    • alintLinter for repository structure, files and config values
    • jev-specCLI that fails the build when code drifts from its Markdown spec
    • CatalystOpsEditor extension that catches PySpark performance problems before they run
    • ArityLanguage server, formatter and linter for R

    More in Python

    See all 162 →
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • gnss_gpuGPU GNSS positioning for urban canyons with particle filters and ray-traced NLOS
    • SnitchPer-app network monitor and outbound firewall for the desktop
    • HisabDouble-entry ledger kept by texting a WhatsApp agent, in Urdu or English