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

enhancement: add new backend to load and dump python code as data #161

Merged
merged 5 commits into from
Jan 14, 2024

Conversation

ssato
Copy link
Owner

@ssato ssato commented Jan 14, 2024

This PR adds new backend module consists of the code to

  • load data from python code which contains a literal data represents a very basic and simple data
  • load data from python code which contains a data may be constructed with code run
  • dump data to a python code

along with docs and test cases and data.

add new backend loader and dumper to load from and dump to python code.

- src/anyconfig/backend/python: new backend implementation
- src/anyconfig/backend/__init__.py: enable new backend module
- tests/: test cases and data for new backend module
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (74c061b) 95.87% compared to head (898c148) 95.91%.

Files Patch % Lines
src/anyconfig/backend/python/loader.py 92.59% 2 Missing ⚠️
src/anyconfig/backend/python/utils.py 96.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next     #161      +/-   ##
==========================================
+ Coverage   95.87%   95.91%   +0.03%     
==========================================
  Files         271      277       +6     
  Lines        4630     4744     +114     
==========================================
+ Hits         4439     4550     +111     
- Misses        191      194       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ssato
Copy link
Owner Author

ssato commented Jan 14, 2024

This also may close #138

@ssato ssato merged commit 72d2504 into next Jan 14, 2024
15 checks passed
@ssato ssato deleted the feature/python-loader-dumper-backends branch January 14, 2024 05:59
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.

1 participant