imas_validator.rules.ast_rewrite

This file describes the functions for ast rewriting

Functions

rewrite_assert(old_code, filename)

Rewrite block of code to swap assert statement with given assert function

run_path(rule_path, val_registry, ...)

Run the file corresponding to the given path with rewritten assert statements.

Classes

AssertTransformer()

Node transformer that swaps assert statement with given assert function


Last update: 2025-08-29