-
Notifications
You must be signed in to change notification settings - Fork 69
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
Replacing enums with string and installing isort & ruff #228
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
finalized the gitignore
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #228 +/- ##
==========================================
+ Coverage 95.63% 95.68% +0.04%
==========================================
Files 16 17 +1
Lines 986 997 +11
Branches 194 194
==========================================
+ Hits 943 954 +11
Misses 22 22
Partials 21 21
☔ View full report in Codecov by Sentry. |
hey @jwmueller @sanjanag @elisno, This PR is mostly related to formatting. I added the following libs to the requirements.
I was thinking of replacing If you guys think this PR is an improvement, we can merge this branch after my other PR. Otherwise, I could drop the parts you think unnecessary. |
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one comment
@elisno, actually, I was in the wrong branch when I tried running black after setting the line length to 100: #228 (comment). (you can ignore my previous message) Previously, you guys didn't have So, setting it to 100 caused quite a bit of change in 19 files in Please let me know if you want me to commit the above changes. Or I can commit them and you can decide whether to keep or drop those commits. What do you think? |
I see, then the 88-character limit you've set is fine for this PR. I just assumed that some of the formatting changes were caused by explicitly setting that character limit. No need to bump it up to 100 for now. |
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
Summary
This PR replaces HashType and IssueType enums with strings. IssueType was created before but in some places, string was used. This PR resolves that issue.
Along with those, ruff and isort which are linting and import formatting tools, respectively, added to in requirements.
If
isort
andruff
are not desired, I can remove them from the commitsNOTE: This PR will be merged after https://github.com/cleanlab/cleanvision/pull/227/files if it is merged. Then, we can get rid of the commits from that PR (by rebasing onto main). Currently, we see those changes here which will be gone after the rebasing.
Impact
Small code clean up and some formatting. Along with that additional installations. Normally, these installations should not go into production code, they should stay in
dev
but I am not sure how to do that in the current setting. In the future, by separating requirements from requirements-dev.txt, we may be able to achieve that.Testing
Ticket(s) or Conversations
References