Skip to content
CAI
Software that uses CAICheck a score

astral-sh/ty

56.9

Weak · 17 November 2026

1.4k

lines of production code

Python

with JavaScript

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Automated schema updates and PGO build scripts for ty

Added \scripts/update\_schemastore.py\ to automate publishing ty's JSON schema to SchemaStore, handling git operations, dependency installation, and formatting. Added \scripts/build\_ty\_pgo.py\ to build ty with Profile-Guided Optimization using a pinned corpus of ecosystem projects (pytest, httpx, fastapi, etc.) to improve runtime performance.

ty · high confidence

Initial release infrastructure and documentation for ty

This change establishes the standalone \ty\ repository, separating its documentation and release pipeline from the main Ruff codebase. It introduces a pre-commit configuration with frozen hooks for linting, formatting, and security checks, sets up a Docker build process for the Rust-based type checker, and configures \cargo-dist\ for multi-platform binary and Docker image distribution. The repository also includes comprehensive documentation, benchmarking data comparing ty against other type checkers, and a detailed contributing guide explaining the submodule relationship with the Ruff repository.

(repo-wide) · high confidence

Introduce \`ty\` Python package to locate and run the \`ty\` binary

A new \ty\ Python package has been added, providing a \find\_ty\bin()\ function that locates the \ty\ binary across various installation paths (scripts directories, prefix/target locations, and user schemes) and raises a clear error if not found. The package also includes a \\\main\\_.py\ entry point that executes the located binary, handling platform-specific execution (using \subprocess\ on Windows and \os.execvp\ on Unix) and ensuring clean exit codes. The package is marked as typed via \py.typed\.

python · high confidence

New release, CI, and documentation automation scripts

The repository now includes a suite of new shell and Python scripts to automate the release process, CI workflows, and documentation generation. \release.sh\ initializes the Ruff submodule, updates it to the latest commit, runs the \rooster\ tool to generate changelogs and bump versions, and appends typeshed diff links to the changelog when applicable. \autogenerate\_files.sh\ synchronizes the Rust toolchain and copies reference documentation from the Ruff submodule. \transform\_readme.py\ adapts the README for PyPI by replacing dark-mode benchmark images with light-only versions and converting relative links to absolute URLs. Additionally, \prepare\_daily\_fuzz.py\ selects Ruff commits for daily fuzzing workflows, and \patch-dist-manifest-checksums.py\ adds SHA-256 checksums to cargo-dist manifests to ensure installer integrity.

scripts · high confidence

Removals

Removal of CLI entry point

The \src/ty/\_\init\\_.py\ file has been deleted, removing the \main\ function that previously printed a welcome message. This eliminates the command-line interface entry point for the \ty\ package.

src/ty · high confidence

Dependencies

ty 0.0.84: Python 3.15 support and dependency group restructuring

The ty package has been updated to version 0.0.84, adding explicit support for Python 3.15 alongside existing versions 3.8 through 3.14. The build system has switched from uv\_build to maturin to handle the Rust-based binary bindings. Additionally, development dependencies have been reorganized into specific groups (dev, release, docs, docker) with the dev group now pinning prek to version 0.5.0 and requiring Python 3.12+.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 52.9 → 56.9 (+4.0)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 97.8 → 100.0 (+2.2)
  • Architecture 69.0 → 69.0 (0.0)
  • Maturity 54.2 → 60.7 (+6.5)
  • Readiness 38.5 → 43.2 (+4.7)
  • Security 80.7 → 80.7 (0.0)

Resolved (6)

  • Dependency hygiene PARTLY measured — Python dependencies read, no exact pin to grade for currency
  • FileTooLong: scripts/build_ty_pgo.py (scripts/build_ty_pgo.py)
  • No tests found
  • build_ty_pgo.ecosystem_python_files (cognitive 18) (scripts/build_ty_pgo.py)
  • build_ty_pgo.profile_language_server (cognitive 19) (scripts/build_ty_pgo.py)
  • build_ty_pgo.profile_language_server (cyclomatic 17) (scripts/build_ty_pgo.py)

New (1)

  • Dependency hygiene PARTLY measured — Python dependencies read, dependency currency not (the index lookup answered not published)

Changes since last survey

  • 20 commits — 20 feature/other, 0 fixes

By area

  • (root) — 11 commits
  • .github/workflows — 5 commits
  • docs/assets — 1 commit
  • docs/editors.md — 1 commit
  • docs/features — 1 commit
  • docs/reference — 1 commit

Notable commits

  • change: Avoid multipart uploads for release artifacts (#5017)
  • change: Bump version to 0.0.100 (#4987)
  • change: Bump version to 0.0.101 (#5001)
  • change: Bump version to 0.0.102 (#5015)
  • change: Bump version to 0.0.103 (#5023)
  • change: Bump version to 0.0.104 (#5031)
  • change: Bump version to 0.0.98 (#4936)
  • change: Bump version to 0.0.99 (#4956)
  • change: Document standalone scripts (#4902)
  • change: Infer the ty release tag from dist-workspace.toml (#5014)
  • change: Pin astral-sh/github-actions to 2026.11.16.0 (#5045)
  • change: Skip existing release artifacts when retrying mirror uploads (#4937)
  • change: Update Artifact GitHub Actions dependencies (#4994)
  • change: Update PyCharm setup instructions for 2026.3 (#4978)
  • change: Update benchmarks for ty 0.0.99 (#4957)
  • change: Update dependency prek to v0.5.5 (#4995)
  • change: Update dependency python to 3.15 (#4997)
  • change: Update prek dependencies (#4996)
  • change: Update soupsieve to 4.0.1 (#5027)
  • change: [ty] Clarify documentation and correct stale guidance (#4726)

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

astral-sh/ty was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 6d46032dc84015a48375f8b68273e234816c3d2e — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.84+preprod-d645ca9bbedd.