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

Refactoring TierABC into multiple Base Classes #127

Merged
merged 18 commits into from
Jul 11, 2024
Merged

Conversation

0Hughman0
Copy link
Owner

@0Hughman0 0Hughman0 commented Jul 8, 2024

This approach is good because:

Using the BaseABC defines a low-level description of what's needed for a Tier.

But using the Notebook and Folder Base classes make getting to sensible implementations simple.

We do need to make sure users inherit from these base classes, rather than the defaults (which actually could be an argument for the HomeBase I provided in the other PR....)

Sensible defaults do make the code look confusing, but I think are actually helpful for users, defining all those things is a pain and a bit of magic is permissible I think.

Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 71.33333% with 129 lines in your changes missing coverage. Please review.

Project coverage is 59.73%. Comparing base (ba143e9) to head (a38bdbf).
Report is 4 commits behind head on 0.3.0-pre.

Files Patch % Lines
cassini/ipygui.py 4.68% 61 Missing ⚠️
cassini/core.py 82.91% 55 Missing ⚠️
cassini/magics.py 0.00% 5 Missing ⚠️
cassini/jlgui.py 0.00% 3 Missing ⚠️
cassini/utils.py 75.00% 3 Missing ⚠️
cassini/accessors.py 93.75% 1 Missing ⚠️
cassini/environment.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           0.3.0-pre     #127      +/-   ##
=============================================
+ Coverage      57.58%   59.73%   +2.14%     
=============================================
  Files             13       13              
  Lines           1252     1212      -40     
=============================================
+ Hits             721      724       +3     
+ Misses           531      488      -43     

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

@0Hughman0
Copy link
Owner Author

Compatibility will fail because there is no 0.3.x branch in jupyter_cassini currently... it will also fail once that is fixed!

@0Hughman0 0Hughman0 merged commit 3b657e4 into 0.3.0-pre Jul 11, 2024
3 of 4 checks passed
@0Hughman0 0Hughman0 deleted the DoubleABC branch August 26, 2024 09:39
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.

1 participant