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

Switch from 'toml' package to tomli/tomllib #72

Merged
merged 2 commits into from
Jan 12, 2023
Merged

Conversation

mwgamble
Copy link
Contributor

@mwgamble mwgamble commented Jan 9, 2023

Python 3.11 comes with built-in support for TOML. It's an almost direct import of the tomli package. As the 'toml' library is unmaintained, and tomli has the same interface as what's in the standard library, this switches the TOML support to a supported library with a minimum of fuss.

Tomllib requires files to be opened in 'rb' mode, so the relevant tests had to be updated accordingly.

Fixes #70

Python 3.11 comes with built-in support for TOML. It's an almost direct
import of the tomli package. As the 'toml' library is unmaintained, and
tomli has the same interface as what's in the standard library, this
switches the TOML support to a supported library with a minimum of fuss.

Tomllib requires files to be opened in 'rb' mode, so the relevant tests
had to be updated accordingly.
@mwgamble
Copy link
Contributor Author

@arkq I've updated the PR to resolve the issues with the first build 👍

@codecov
Copy link

codecov bot commented Jan 11, 2023

Codecov Report

Base: 93.63% // Head: 93.43% // Decreases project coverage by -0.20% ⚠️

Coverage data is based on head (ad032b7) compared to base (c5345a0).
Patch coverage: 87.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
- Coverage   93.63%   93.43%   -0.21%     
==========================================
  Files           3        3              
  Lines         393      396       +3     
==========================================
+ Hits          368      370       +2     
- Misses         25       26       +1     
Impacted Files Coverage Δ
src/flake8_requirements/modules.py 100.00% <ø> (ø)
src/flake8_requirements/checker.py 93.35% <87.50%> (-0.21%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@arkq arkq merged commit 978e205 into arkq:master Jan 12, 2023
@iivanov-qb iivanov-qb mentioned this pull request Jul 25, 2023
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.

Update toml dependency
3 participants