mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-22 08:12:17 +00:00
[ty] Add an evaluation for completions
This is still early days, but I hope the framework introduced here makes it very easy to add new truth data. Truth data should be seen as a form of regression test for non-ideal ranking of completion suggestions. I think it would help to read `crates/ty_completion_eval/README.md` first to get an idea of what you're reviewing.
This commit is contained in:
parent
6b94e620fe
commit
3771f1567c
63 changed files with 1213 additions and 4 deletions
|
@ -0,0 +1,16 @@
|
|||
class Quux:
|
||||
def __init__(self): pass
|
||||
def lion(self): pass
|
||||
def tiger(self): pass
|
||||
def bear(self): pass
|
||||
def chicken(self): pass
|
||||
def turkey(self): pass
|
||||
def wasp(self): pass
|
||||
def rabbit(self): pass
|
||||
def squirrel(self): pass
|
||||
|
||||
quux = Quux()
|
||||
quux.tur<CURSOR: turkey>
|
||||
|
||||
quux = Quux()
|
||||
quux.be<CURSOR: bear>
|
Loading…
Add table
Add a link
Reference in a new issue