Skip to content

Commit 6975944

Browse files
authored
Add codegen diff visual (#38)
* . * . * . * . * . * . * Automated pre-commit update
1 parent b0efb96 commit 6975944

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

examples/dict_to_schema/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
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.
44

5+
> [!NOTE]
6+
> 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).
7+
58
## How the Conversion Script Works
69

710
The script (`run.py`) automates the entire conversion process in a few key steps:

examples/freezegun_to_timemachine_migration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FreezeGun to TimeMachine Migration Example
1+
# FreezeGun to TimeMachine Migration Example
22

33
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.
44

examples/usesuspensequery_to_usesuspensequeries/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
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.
44

5+
> [!NOTE]
6+
> View example transformations created by this codemod on the `deepfence/ThreatMapper` repository [here](codegen.sh/codemod/a433152e-5e8d-4319-8043-19ff2b418869/public/diff).
7+
58
## How the Migration Script Works
69

710
The script automates the entire migration process in a few key steps:

0 commit comments

Comments
 (0)