edornd / argdantic

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

✨ Add option for custom singleton model (#24) #25

Closed edornd closed 1 year ago

edornd commented 1 year ago

Introduce a singleton flag to allow for singleton configurations. This allows to wrap everything into a user-defined model, while eliminating the top-level configuration name.

codecov-commenter commented 1 year ago

Codecov Report

Merging #25 (1d0c9db) into main (948faee) will not change coverage. The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##              main       #25   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          501       508    +7     
=========================================
+ Hits           501       508    +7     
Impacted Files Coverage Δ
argdantic/core.py 100.00% <100.00%> (ø)
argdantic/parsing/arguments.py 100.00% <100.00%> (ø)

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