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

Add cattrs support #5

Closed
wants to merge 3 commits into from
Closed

Add cattrs support #5

wants to merge 3 commits into from

Conversation

HexDecimal
Copy link
Owner

Closes #4

This code is pretty awful but it works. The object which need to be serialized are complex and I've made a mess getting them to work right. I'm not super proud of this code and I don't think I'll be using it for the tutorial. I'll likely do a better job adding this to my simpler projects.

This is handled by Ruff and the pre-commit hook.
Make it easier to run tests for testing locally.
@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Patch coverage: 99.37% and project coverage change: +1.19 🎉

Comparison is base (14082a4) 95.13% compared to head (955fef8) 96.32%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
+ Coverage   95.13%   96.32%   +1.19%     
==========================================
  Files           1        2       +1     
  Lines         411      572     +161     
==========================================
+ Hits          391      551     +160     
- Misses         20       21       +1     
Impacted Files Coverage Δ
tcod/ecs/__init__.py 95.49% <98.18%> (+0.35%) ⬆️
tcod/ecs/cattrs.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@HexDecimal HexDecimal closed this Jun 10, 2023
@HexDecimal HexDecimal mentioned this pull request Jun 10, 2023
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.

cattrs support
1 participant