-
Notifications
You must be signed in to change notification settings - Fork 1
Remove TUI app components from Murfey #715
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #715 +/- ##
==========================================
+ Coverage 40.30% 42.48% +2.18%
==========================================
Files 99 94 -5
Lines 11602 10346 -1256
Branches 1553 1345 -208
==========================================
- Hits 4676 4396 -280
+ Misses 6708 5733 -975
+ Partials 218 217 -1 🚀 New features to boost your workflow:
|
…ment-server' as a key is no longer needed
stephen-riggs
left a comment
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.
Looks good to me
If you've not already done so it's probably worth running the instrument server with this version just to check nothing unexpected happens
| "fastapi[standard-no-fastapi-cloud-cli]>=0.116.0", | ||
| "pydantic>=2", | ||
| "pydantic-settings", | ||
| "python-jose", |
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.
Does this need to be python-jose[cryptography] like it was before or is that not needed any more?
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.
I had a look at the original repo, and the cryptography optional dependency installs only cryptography. python-jose can thus be safely moved under our general dependencies.
| settling_time: float = 60, | ||
| appearance_time: float | None = None, | ||
| substrings_blacklist: dict[str, dict] = {}, | ||
| substrings_blacklist: dict[str, list[str]] = {}, |
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.
What caused the type to change here?
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.
This was an actual type hinting mistake on my part that went uncaught by pre-commit previously!
substrings_blacklist has the form:
{
"directories": ["string1", "string2", ...],
"files": ["string1", "string2", ...],
}
so its type should be dict[str, list[str]].
The TUI app has not seen use for a good few months, and has not been updated now that the instrument server workflow is mature and working smoothly. This PR removes all files, folders, and class attributes that are refer to the TUI app or call things from it, substantially reducing the presence of unmaintained/deprecated code in our repo.