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 JSON and YAML support to configutil #528

Merged
merged 4 commits into from
Feb 15, 2024
Merged

Conversation

Miauwkeru
Copy link
Contributor

(DIS-2160)

@@ -20,6 +21,7 @@
Union,
)

import yaml
Copy link
Member

@Schamper Schamper Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What library is this from? A yaml library is not always available, unless Python has one in the standard library these days?

Copy link
Contributor

@narimantos narimantos Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it from "pyyaml" ?
tomlib is supported see pep-0680

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added guards for it, and improved the logging.

@narimantos I only worked on yaml this round, didn't touch toml yet

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

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

Comparison is base (6d3e728) 73.62% compared to head (aa486ff) 73.65%.

Files Patch % Lines
dissect/target/helpers/configutil.py 87.80% 5 Missing ⚠️
dissect/target/filesystems/config.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #528      +/-   ##
==========================================
+ Coverage   73.62%   73.65%   +0.02%     
==========================================
  Files         277      277              
  Lines       23083    23124      +41     
==========================================
+ Hits        16996    17032      +36     
- Misses       6087     6092       +5     
Flag Coverage Δ
unittests 73.65% <82.60%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Miauwkeru Miauwkeru force-pushed the DIS-2160_add-json-support branch from 6109468 to 8450cf4 Compare February 8, 2024 13:04
@Miauwkeru Miauwkeru requested a review from Poeloe February 13, 2024 14:14
@Miauwkeru Miauwkeru force-pushed the DIS-2160_add-json-support branch from a5d5a4e to 4735fd6 Compare February 13, 2024 14:14
Copy link
Contributor

@Poeloe Poeloe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Miauwkeru Miauwkeru force-pushed the DIS-2160_add-json-support branch from 4735fd6 to aa486ff Compare February 15, 2024 10:28
@Miauwkeru Miauwkeru merged commit 0c6076e into main Feb 15, 2024
16 checks passed
@Miauwkeru Miauwkeru deleted the DIS-2160_add-json-support branch February 15, 2024 11:38
Poeloe pushed a commit that referenced this pull request Feb 29, 2024
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
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.

4 participants