or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/varname@0.15.x
tile.json

tessl/pypi-varname

tessl install tessl/pypi-varname@0.15.0

Dark 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%

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses the varname package's nameof function to retrieve variable names and build configuration dictionaries. The focus is on correct usage of nameof with single/multiple arguments, understanding vars_only parameter, and proper handling of attribute chains.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import nameof",
      "description": "Imports the nameof function from the varname package",
      "max_score": 10
    },
    {
      "name": "Basic nameof usage",
      "description": "Uses nameof() correctly in build_config to retrieve variable names for multiple arguments, returning a tuple when multiple arguments are passed",
      "max_score": 25
    },
    {
      "name": "Single argument handling",
      "description": "Correctly handles the case where nameof returns a string (not tuple) when called with a single argument",
      "max_score": 15
    },
    {
      "name": "Dictionary construction",
      "description": "Properly constructs dictionary by pairing returned names from nameof with the actual argument values",
      "max_score": 15
    },
    {
      "name": "Prefix implementation",
      "description": "Implements build_config_with_prefix using nameof and correctly prepends the prefix to each variable name",
      "max_score": 15
    },
    {
      "name": "Full path extraction",
      "description": "Uses nameof with vars_only=False parameter in get_full_path to retrieve the complete attribute chain (e.g., 'obj.attr.subattr')",
      "max_score": 20
    }
  ]
}