bumpsmith — A migration that is kept

fixtures/green
suite: /path/to/a/pydantic2/python -m pytest -q

migrated

3
suite runs
2
breaks classified
6
sites rewritten
2
changes kept

The chain, one break at a time

Step 1ITEMS_KEYWORDrc=2 · local

conlist() got an unexpected keyword argument 'min_items'

pytest blamed
app.py:9
rule written
Rename `min_items=`/`max_items=` to `min_length=`/`max_length=`
rule matched
4 sites across 1 file
edits
4 written to disk
pytest named 1the rule found 4
Step 2ROOT_VALIDATOR_SKIPrc=2 · local

If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.

pytest blamed
app.py:11
rule written
Give `@root_validator` the `skip_on_failure=True` v2 requires
rule matched
2 sites across 1 file
edits
2 written to disk
pytest named 1the rule found 2
Step 3rc=0 · local

How it ended

The suite came back green and the edits were kept.

It stopped at green — the suite passed on this machine.