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 dedicated SystemInfo type #96

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Add dedicated SystemInfo type #96

merged 2 commits into from
Jun 11, 2024

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Jun 11, 2024

This PR builds on top of #95.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.90%. Comparing base (31bd298) to head (b60f8fc).

Files Patch % Lines
src/duct.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #96      +/-   ##
==========================================
- Coverage   87.36%   86.90%   -0.46%     
==========================================
  Files           1        1              
  Lines         269      275       +6     
  Branches       41       42       +1     
==========================================
+ Hits          235      239       +4     
- Misses         26       28       +2     
  Partials        8        8              

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

@@ -183,7 +191,9 @@ def __repr__(self) -> str:
return json.dumps(
{
"command": self.command,
"system": self.system_info,
"system": (
None if self.system_info is None else asdict(self.system_info)
Copy link
Member

Choose a reason for hiding this comment

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

dataclasses keep getting cooler :)

Copy link
Member

@asmacdo asmacdo left a comment

Choose a reason for hiding this comment

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

LGTM after rebase

@jwodder
Copy link
Member Author

jwodder commented Jun 11, 2024

@asmacdo Rebased.

@asmacdo asmacdo merged commit 8c6989c into con:main Jun 11, 2024
29 of 30 checks passed
@jwodder jwodder deleted the system-info branch June 11, 2024 16:20
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.

2 participants