edornd / argdantic

Typed command line interfaces with argparse and pydantic
MIT License
38 stars 4 forks source link

pydantic V2 porting #36

Closed edornd closed 11 months ago

edornd commented 11 months ago

Completed porting to V2

codecov[bot] commented 11 months ago

Codecov Report

Merging #36 (bd94d12) into main (7ef7a4b) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #36   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines          572       616   +44     
=========================================
+ Hits           572       616   +44     
Files Changed Coverage Δ
argdantic/convert.py 100.00% <100.00%> (ø)
argdantic/core.py 100.00% <100.00%> (ø)
argdantic/fields.py 100.00% <100.00%> (ø)
argdantic/registry.py 100.00% <100.00%> (ø)
argdantic/sources/base.py 100.00% <100.00%> (ø)
argdantic/sources/json.py 100.00% <100.00%> (ø)
argdantic/sources/toml.py 100.00% <100.00%> (ø)
argdantic/sources/yaml.py 100.00% <100.00%> (ø)
argdantic/stores/base.py 100.00% <100.00%> (ø)
argdantic/stores/json.py 100.00% <100.00%> (ø)
... and 3 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

edornd commented 11 months ago

Kind of expected. Note to self:

  1. Fix tests on py<3.10 for new type hints.
  2. Fix tests on windows for case sensitive env variables: on windows it has no effect (https://docs.pydantic.dev/latest/usage/pydantic_settings/#case-sensitivity)