litestar-org / polyfactory

Simple and powerful factories for mock data generation
https://polyfactory.litestar.dev/
MIT License
1k stars 78 forks source link

feat: allow use of the default value based on configuration (Sourcery refactored) #473

Closed sourcery-ai[bot] closed 8 months ago

sourcery-ai[bot] commented 8 months ago

Pull Request #472 refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

NOTE: As code is pushed to the original Pull Request, Sourcery will re-run and update (force-push) this Pull Request with new refactorings as necessary. If Sourcery finds no refactorings at any point, this Pull Request will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the use-defaults branch, then run:

git fetch origin sourcery/use-defaults
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!