KEMBAR78
feat: environment variable to disable plugins by geospackle · Pull Request #8767 · pydantic/pydantic · GitHub
Skip to content

Conversation

@geospackle
Copy link
Contributor

@geospackle geospackle commented Feb 8, 2024

Change Summary

Environment variable PYDANTIC_DISABLE_PLUGINS can be used to disable all or specified plugins.

Related issue number

#7709

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @dmontagu

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 8, 2024

CodSpeed Performance Report

Merging #8767 will not alter performance

Comparing geospackle:am/disable-plugins (e89c7e3) with main (14ce997)

Summary

✅ 10 untouched benchmarks

@geospackle
Copy link
Contributor Author

please review

@geospackle
Copy link
Contributor Author

  1. Should we add a warning when plugin is disabled?
  2. Is it useful to add default value 0 to enable plugins?

pantero and others added 2 commits February 12, 2024 11:33
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
geospackle and others added 3 commits February 12, 2024 08:48
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
@sydney-runkle
Copy link
Contributor

@geospackle,

Looks good overall, but we'll have to fix the tests before merging 👍. Could you please look into those errors?

@geospackle
Copy link
Contributor Author

@geospackle,

Looks good overall, but we'll have to fix the tests before merging 👍. Could you please look into those errors?

I noticed that. Turns out globals were leaking to other tests and needed teardown on the fixture. Got the changes pushed now.

@sydney-runkle
Copy link
Contributor

@geospackle,

Great, thanks! Awesome work 🚀 .

@sydney-runkle sydney-runkle merged commit b145516 into pydantic:main Feb 13, 2024
@geospackle geospackle changed the title Environment variable to disable plugins feat: environment variable to disable plugins Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants