-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Project in charge of heirarchy
Pleasing type checker by making default setter separate attribute.
created HomeTierBase
Codecov ReportAttention: Patch coverage is
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. |
Compatibility will fail because there is no 0.3.x branch in jupyter_cassini currently... it will also fail once that is fixed! |
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.