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

Configuration: Use toml instead of tomlkit #27

Merged
merged 3 commits into from
Sep 23, 2022
Merged

Conversation

amotl
Copy link

@amotl amotl commented Sep 23, 2022

Hi there,

some research 1 into #25 revealed that only the toml package handles serializing NoneType values well, by just ignoring them. On the other hand, both tomlkit and tomli-w croak on them.

So, let's just switch to toml instead.

With kind regards,
Andreas.

P.S.: TOML does not know about any kinds of NULL values, that is why this issue is not unexpected. See also toml-lang/toml#921.

Footnotes

  1. https://gist.github.com/amotl/4d8bc928d781a5d0fbc7f404396f8417

@amotl amotl linked an issue Sep 23, 2022 that may be closed by this pull request
It handles serializing `NoneType` values well, by just ignoring them. On
the other hand, `tomlkit` and `tomli-w` croak on them.
@amotl amotl force-pushed the amo/use-toml-package branch from c3f14ea to 35ef7b2 Compare September 23, 2022 21:57
@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2022

Codecov Report

Base: 69.19% // Head: 69.13% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (35ef7b2) compared to base (3838620).
Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             next      #27      +/-   ##
==========================================
- Coverage   69.19%   69.13%   -0.07%     
==========================================
  Files          53       52       -1     
  Lines        3084     3078       -6     
==========================================
- Hits         2134     2128       -6     
  Misses        950      950              
Flag Coverage Δ
unittests 69.13% <66.66%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
secpi/util/config.py 66.66% <66.66%> (ø)
secpi/__init__.py

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.

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.

ValueError: Invalid type <class 'NoneType'>
2 participants