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

fix: Fix 'possibly-used-before-assignment' pylint issues #440

Merged

Conversation

vojtechtrefny
Copy link
Collaborator

Latest pylint added a new check for values used before assignment. This fixes these issues found in the blivet module. Some of these are false positives, some real potential issues.

Copy link

codecov bot commented May 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 11.65%. Comparing base (acd20be) to head (967748e).
Report is 3 commits behind head on main.

Files Patch % Lines
library/blivet.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #440      +/-   ##
==========================================
- Coverage   16.54%   11.65%   -4.90%     
==========================================
  Files           2        8       +6     
  Lines         284     1785    +1501     
  Branches       79        0      -79     
==========================================
+ Hits           47      208     +161     
- Misses        237     1577    +1340     
Flag Coverage Δ
sanity ?

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.

@vojtechtrefny vojtechtrefny force-pushed the main_pylint-fixes branch 4 times, most recently from eafe208 to 6cfc3a5 Compare May 22, 2024 08:53
Latest pylint added a new check for values used before assignment.
This fixes these issues found in the blivet module. Some of these
are false positives, some real potential issues.
@richm
Copy link
Contributor

richm commented May 29, 2024

@vojtechtrefny lgtm - ready to merge?

@vojtechtrefny vojtechtrefny merged commit bfaae50 into linux-system-roles:main May 31, 2024
17 of 19 checks passed
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