tessl install tessl/pypi-varname@0.15.0Dark magics about variable names in python
Agent Success
Agent success rate when using this tile
90%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.41x
Baseline
Agent success rate without this tile
64%
{
"context": "This criteria evaluates how well the engineer uses the varname package's ignore functionality to filter out specific modules and functions when capturing variable names. The focus is on proper usage of the ignore parameter with varname() to handle frame navigation through wrapper functions and modules.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports varname",
"description": "Correctly imports the varname function from the varname package (e.g., 'from varname import varname')",
"max_score": 10
},
{
"name": "Uses varname()",
"description": "Calls varname() function to retrieve the variable name in the create() method",
"max_score": 20
},
{
"name": "Module ignore parameter",
"description": "Uses the ignore parameter with module names to filter out wrapper modules (e.g., 'varname(ignore=...)' or building an ignore list with modules)",
"max_score": 25
},
{
"name": "Function ignore parameter",
"description": "Uses the ignore parameter with function names to filter out wrapper functions (e.g., passing function references or qualified names to ignore)",
"max_score": 25
},
{
"name": "Combined ignore patterns",
"description": "Correctly combines both module and function ignore patterns in a single ignore parameter, allowing simultaneous filtering of multiple patterns",
"max_score": 20
}
]
}