CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-varname

Dark magics about variable names in python

Overall
score

90%

Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how well the engineer uses the varname package to implement property decorators that capture variable names and detect method chaining. The focus is on correctly using varname() within @property decorated methods and will() for method chain detection.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "@property decorator used",
      "description": "The get_config and chain methods are implemented as properties using the @property decorator",
      "max_score": 15
    },
    {
      "name": "varname() in property",
      "description": "The varname() function is called within the get_config property to capture the variable name",
      "max_score": 25
    },
    {
      "name": "will() in property",
      "description": "The will() function is called within the chain property to detect the next method call",
      "max_score": 25
    },
    {
      "name": "Proper storage",
      "description": "Captured variable names and method names are stored in instance attributes (e.g., lists) for later retrieval",
      "max_score": 15
    },
    {
      "name": "Return self pattern",
      "description": "Properties return self to enable assignment capture and method chaining as specified",
      "max_score": 10
    },
    {
      "name": "Test compatibility",
      "description": "Implementation satisfies all test cases: single assignment, method chain detection, multiple assignments, and stub method chaining",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-varname

tile.json