pydantic / bump-pydantic

Convert Pydantic from V1 to V2 ♻
MIT License
303 stars 24 forks source link

I have a big pile of improvements to upstream #167

Open camillol opened 3 months ago

camillol commented 3 months ago

I upgraded a large private codebase to Pydantic 2, and in the process I made a bunch of improvements to bump-pydantic. See this branch, and the list of commits.

Here is a list of issues this branch addresses (possibly slightly incomplete, it's lightly edited from a personal log):

Most of these changes should be generally useful: they migrate things that were not migrated, or they fix bugs in existing migrations. A few changes are needed to enable running bump_pydantic on a large repository. A couple of things depend on improvements to LibCST which I am also upstreaming.

I sent three of these as separate PRs about two months ago, but there has been no activity. Let's find a way to coordinate on how to get these changes upstreamed. I won't need this code again, but I'd like others to be able to benefit from it.

povilasb commented 2 months ago

That would be really useful for me too 🙇

samuelcolvin commented 2 months ago

Thanks so much for this. I'll get someone to look at it soon.