Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/mark custom types #116

Merged
merged 13 commits into from
Sep 18, 2023
Merged

Conversation

JensHeinrich
Copy link
Contributor

@JensHeinrich JensHeinrich commented Aug 10, 2023

@JensHeinrich
Copy link
Contributor Author

JensHeinrich commented Aug 10, 2023

  • Rebase and reorder to make the "Fixes" commit the last commit after fixing the feature

@JensHeinrich JensHeinrich marked this pull request as ready for review August 11, 2023 06:47
@slafs
Copy link
Contributor

slafs commented Aug 11, 2023

Nice! Thank you. This will be useful for us too! 🙇 (haven't reviewed this PR though)

Just noticed that the rule code should probably be BP009 (or BP011 maybe). The last current working one is BP008, but BP009 and BP010 are only mentioned in the README, they are not-implemented and commented out in the README. Looks like the last time a new mod was added (BP008), Marcelo incremented the number of commented out mods and used first "free" one. See #90.

@JensHeinrich
Copy link
Contributor Author

Nice! Thank you. This will be useful for us too! 🙇 (haven't reviewed this PR though)

Just noticed that the rule code should probably be BP009 (or BP011 maybe). The last current working one is BP008, but BP009 and BP010 are only mentioned in the README, they are not-implemented and commented out in the README. Looks like the last time a new mod was added (BP008), Marcelo incremented the number of commented out mods and used first "free" one. See #90.

Ok, thought I would just append to the commented one^^

@JensHeinrich
Copy link
Contributor Author

Nice! Thank you. This will be useful for us too! 🙇 (haven't reviewed this PR though)

Just noticed that the rule code should probably be BP009 (or BP011 maybe). The last current working one is BP008, but BP009 and BP010 are only mentioned in the README, they are not-implemented and commented out in the README. Looks like the last time a new mod was added (BP008), Marcelo incremented the number of commented out mods and used first "free" one. See #90.

Updated the numbering

Copy link
Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add a test for when there's already a TODO comment.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
bump_pydantic/codemods/__init__.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Kludex Kludex merged commit 507e8cc into pydantic:main Sep 18, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark methods on arbitrary classes
3 participants