mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
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
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:
- Check
completion.tomlfor relevant settings. - Run
uv.lockafter updatingpyproject.toml(if necessary) to ensure the dependency versions are locked.