Files
ruff/crates/ty_completion_eval/truth
Andrew Gallant 10eb3d52d5 [ty] Rank top-level module symbols above most other symbols
This makes it so, e.g., `os<CURSOR>` will suggest the top-level stdlib
`os` module even if there is an `os` symbol elsewhere in your project.

The way this is done is somewhat overwrought, but it's done to avoid
suggesting top-level modules over other symbols already in scope.

Fixes astral-sh/issues#1852
2026-01-09 10:11:37 -05:00
..

This directory contains truth data for ty's completion evaluation.

Adding new truth data

To add new truth data, you can either add a new <CURSOR> directive to an existing Python project in this directory or create a new Python project. To create a new directory, just cp -a existing new and modify it as needed. Then:

  1. Check completion.toml for relevant settings.
  2. Run uv.lock after updating pyproject.toml (if necessary) to ensure the dependency versions are locked.