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

Replace tomlkit with tomli and remove toml_file_encoding config #236

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

hramezani
Copy link
Member

@hramezani hramezani commented Feb 18, 2024

Fixes #235

  • Replace tomlkit with tomli
  • Remove remove toml_file_encoding config because file open in binary mode doesn't take an encoding argument

Copy link

codecov bot commented Feb 18, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (965d1b4) 97.63% compared to head (a1e7f82) 97.14%.

Files Patch % Lines
pydantic_settings/sources.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
- Coverage   97.63%   97.14%   -0.49%     
==========================================
  Files           5        5              
  Lines         422      420       -2     
  Branches       89       89              
==========================================
- Hits          412      408       -4     
- Misses          7        9       +2     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

LGTM, only question is whether we should fall back to tomlkit if tomli is not installed?

@hramezani
Copy link
Member Author

LGTM, only question is whether we should fall back to tomlkit if tomli is not installed?

I think we don't need to fall back on tomlkit

@hramezani hramezani merged commit 548532b into main Feb 19, 2024
18 of 20 checks passed
@hramezani hramezani deleted the fix-toml branch February 19, 2024 16:14
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.

We should use tomli not tomlkit
2 participants