cihai / unihan-etl

Export UNIHAN's database to csv, json or yaml
https://unihan-etl.git-pull.com
MIT License
52 stars 13 forks source link

Move options to `dataclass` #280

Closed tony closed 1 year ago

tony commented 1 year ago

Fixes #279 by moving options to dataclass

codecov[bot] commented 1 year ago

Codecov Report

Merging #280 (49d8e2d) into master (9d9727e) will decrease coverage by 1.00%. The diff coverage is 52.17%.

@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   70.45%   69.45%   -1.00%     
==========================================
  Files           9       10       +1     
  Lines         995     1005      +10     
  Branches      180      135      -45     
==========================================
- Hits          701      698       -3     
- Misses        271      282      +11     
- Partials       23       25       +2     
Impacted Files Coverage Δ
src/unihan_etl/options.py 0.00% <0.00%> (ø)
src/unihan_etl/pytest_plugin.py 28.37% <14.28%> (+0.74%) :arrow_up:
src/unihan_etl/process.py 61.46% <48.64%> (+1.64%) :arrow_up:
src/unihan_etl/util.py 51.78% <50.00%> (-7.48%) :arrow_down:
tests/test_unihan.py 96.55% <100.00%> (+0.06%) :arrow_up:

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