godatadriven / pydantic-avro

This library can convert a pydantic class to a avro schema or generate python code from a avro schema.
https://github.com/godatadriven/pydantic-avro
MIT License
63 stars 30 forks source link

Refactor #107

Closed dan1elt0m closed 4 months ago

dan1elt0m commented 5 months ago

Refactored most of the code

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 92.22615% with 22 lines in your changes missing coverage. Please review.

Project coverage is 92.22%. Comparing base (6a57ae9) to head (76b23dd).

:exclamation: Current head 76b23dd differs from pull request most recent head a01370b

Please upload reports for the commit a01370b to get more accurate results.

Files Patch % Lines
src/pydantic_avro/from_avro/avro_to_pydantic.py 60.00% 10 Missing :warning:
src/pydantic_avro/from_avro/type_mapping.py 94.11% 6 Missing :warning:
src/pydantic_avro/from_avro/class_registery.py 83.33% 3 Missing :warning:
src/pydantic_avro/to_avro/mapping.py 97.47% 3 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #107 +/- ## ========================================== + Coverage 90.27% 92.22% +1.94% ========================================== Files 2 6 +4 Lines 216 283 +67 ========================================== + Hits 195 261 +66 - Misses 21 22 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.