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: ruff rule F841 (unused variable) #90

Merged
merged 3 commits into from
Jun 1, 2023
Merged

fix: ruff rule F841 (unused variable) #90

merged 3 commits into from
Jun 1, 2023

Conversation

thatlittleboy
Copy link
Collaborator

@thatlittleboy thatlittleboy commented May 26, 2023

Related to Issue #21, and is a continuation of PR #25 when ruff was initially introduced to the project.

This PR aims to make the codebase F841-compliant ("Local variables assigned but unused").

For the variables with no clear purpose, I removed them. Some I chose to keep/comment away (somewhat arbitrary decision based on a feeling that it might be useful for future reference, feel free to tell me to delete them).

Dependencies: The hstack bug of Explanation makes an appearance here too. So PR #86 should be merged in first. ✅ DONE

@thatlittleboy thatlittleboy marked this pull request as draft May 26, 2023 15:43
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Merging #90 (64a283d) into master (2cabb07) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
- Coverage   53.65%   53.63%   -0.02%     
==========================================
  Files          90       90              
  Lines       12981    12957      -24     
==========================================
- Hits         6965     6950      -15     
+ Misses       6016     6007       -9     
Impacted Files Coverage Δ
shap/_explanation.py 55.68% <ø> (+0.02%) ⬆️
shap/plots/_beeswarm.py 53.78% <ø> (+0.02%) ⬆️
shap/plots/_image.py 73.04% <ø> (-0.47%) ⬇️
shap/plots/_scatter.py 26.62% <0.00%> (ø)
shap/plots/_text.py 54.48% <ø> (-0.15%) ⬇️
shap/plots/_violin.py 76.26% <ø> (+0.40%) ⬆️
shap/utils/_general.py 64.82% <ø> (+0.32%) ⬆️
shap/plots/_bar.py 56.33% <50.00%> (ø)
shap/explainers/_sampling.py 89.18% <100.00%> (+0.69%) ⬆️
shap/plots/_waterfall.py 83.54% <100.00%> (+0.31%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@thatlittleboy thatlittleboy marked this pull request as ready for review May 30, 2023 04:25
Copy link
Collaborator

@connortann connortann left a comment

Choose a reason for hiding this comment

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

LGTM, nice one!

@connortann connortann merged commit 5e45770 into master Jun 1, 2023
@connortann connortann deleted the ruff-F841-rule branch June 1, 2023 13:36
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