Open Coding Standards

Configure the ruleset used by the Graph Memory Copy Algorithm.

Structural Consistency

Active
Prefer List Comprehension
Converts simple for-loops accumulating a list into list comprehensions.
res = []
for i in items: res.append(i*2) → [i*2 for i in items]
Unified Return Statements
Ensures functions have a consistent return structure (e.g., single exit point where applicable).
Flatten Nested Conditionals
Inverts if-conditions to return early, reducing indentation levels (Guard Clauses).

Safety & Type Checking

Partial
Explicit None Check
Enforces is None over == None for singleton comparisons.
Strict Type Annotations
Requires all function arguments and return values to have type hints.