Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/dict_to_schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This example demonstrates how to automatically convert Python dictionary literals into Pydantic models. The codemod makes this process simple by handling all the tedious manual updates automatically.

> [!NOTE]
> View example transformations created by this codemod on the `modal-labs/modal-client` repository [here](https://www.codegen.sh/codemod/6b5f2dfa-948a-4953-b283-9bd4b8545632/public/diff).

## How the Conversion Script Works

The script (`run.py`) automates the entire conversion process in a few key steps:
Expand Down
2 changes: 1 addition & 1 deletion examples/freezegun_to_timemachine_migration/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FreezeGun to TimeMachine Migration Example
# FreezeGun to TimeMachine Migration Example

This example demonstrates how to use Codegen to automatically migrate test code from FreezeGun to TimeMachine for time mocking. The migration script makes this process simple by handling all the tedious manual updates automatically.

Expand Down
3 changes: 3 additions & 0 deletions examples/usesuspensequery_to_usesuspensequeries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This example demonstrates how to use Codegen to automatically convert multiple `useSuspenseQuery` calls to a single `useSuspenseQueries` call in React codebases. The migration script makes this process simple by handling all the tedious manual updates automatically.

> [!NOTE]
> View example transformations created by this codemod on the `deepfence/ThreatMapper` repository [here](codegen.sh/codemod/a433152e-5e8d-4319-8043-19ff2b418869/public/diff).

## How the Migration Script Works

The script automates the entire migration process in a few key steps:
Expand Down
1 change: 1 addition & 0 deletions examples/usesuspensequery_to_usesuspensequeries/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def run(codebase: Codebase):
print("\nModification complete:")
print(f"Files modified: {files_modified}")
print(f"Functions modified: {functions_modified}")
codebase.commit()


if __name__ == "__main__":
Expand Down