ruff/crates/ty_completion_eval/truth
Andrew Gallant 2d4e0edee4 [ty] Add evaluation test for auto-import including symbols in current module
This shouldn't happen. And indeed, currently, this results in a
sub-optimal ranking.
2025-10-29 09:13:49 -04:00
..
auto-import-skips-current-module [ty] Add evaluation test for auto-import including symbols in current module 2025-10-29 09:13:49 -04:00
fstring-completions
higher-level-symbols-preferred
import-deprioritizes-dunder
import-deprioritizes-sunder
import-deprioritizes-type_check_only [ty] Consider type_check_only when ranking completions (#20910) 2025-10-23 15:09:13 +01:00
internal-typeshed-hidden
none-completion
numpy-array
object-attr-instance-methods
raise-uses-base-exception
scope-existing-over-new-import
scope-prioritize-closer
scope-simple-long-identifier
tstring-completions
ty-extensions-lower-stdlib
type-var-typing-over-ast
README.md

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.