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

Change linter to Ruff #44

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Change linter to Ruff #44

merged 1 commit into from
Jan 24, 2025

Conversation

Schamper
Copy link
Member

Closes #43

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 75.72016% with 59 lines in your changes missing coverage. Please review.

Project coverage is 76.86%. Comparing base (dd3b289) to head (82973f0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dissect/volume/vss.py 0.00% 46 Missing ⚠️
dissect/volume/disk/disk.py 83.33% 1 Missing ⚠️
dissect/volume/disk/partition.py 75.00% 1 Missing ⚠️
dissect/volume/disk/schemes/apm.py 80.00% 1 Missing ⚠️
dissect/volume/disk/schemes/bsd.py 80.00% 1 Missing ⚠️
dissect/volume/disk/schemes/gpt.py 75.00% 1 Missing ⚠️
dissect/volume/disk/schemes/mbr.py 75.00% 1 Missing ⚠️
dissect/volume/ldm.py 0.00% 1 Missing ⚠️
dissect/volume/lvm/lvm2.py 87.50% 1 Missing ⚠️
dissect/volume/lvm/metadata.py 99.16% 1 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
+ Coverage   76.70%   76.86%   +0.15%     
==========================================
  Files          29       29              
  Lines        2365     2377      +12     
==========================================
+ Hits         1814     1827      +13     
+ Misses        551      550       -1     
Flag Coverage Δ
unittests 76.86% <75.72%> (+0.15%) ⬆️

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.

Comment on lines 315 to 316
# if descriptor:
# import ipdb; ipdb.set_trace()
Copy link

Choose a reason for hiding this comment

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

Suggested change
# if descriptor:
# import ipdb; ipdb.set_trace()


ipdb.set_trace()
raise Exception()
raise ValueError("Error reading block")

if descriptor and active_store is self and (descriptor.is_overlay or descriptor.overlay):
# print("overlaying data")
Copy link

Choose a reason for hiding this comment

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

Suggested change
# print("overlaying data")

Copy link

Choose a reason for hiding this comment

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

Possibly, also the commented code below on line 371

Copy link
Member Author

Choose a reason for hiding this comment

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

I left the rest as it was since this file is still a WIP 😉 those are hints for whoever continues on it.

@Schamper Schamper requested a review from Horofic January 24, 2025 09:33
@Schamper Schamper merged commit 8fefd76 into main Jan 24, 2025
19 of 20 checks passed
@Schamper Schamper deleted the ruff branch January 24, 2025 10:03
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.

Change linter to Ruff
2 participants