-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Prefix OPENBB_ for .env vars #4475
Conversation
…nBBTerminal into hotfix/fix_keys_prefs
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.
LGTM!
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #4475 +/- ##
==========================================
Coverage ? 54.44%
==========================================
Files ? 596
Lines ? 53670
Branches ? 0
==========================================
Hits ? 29218
Misses ? 24452
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@@ -76,3 +76,14 @@ def __repr__(self) -> str: | |||
dataclass_repr += f" {key}='{value}', \n" | |||
|
|||
return f"{self.__class__.__name__}(\n{dataclass_repr[:-2]}\n)" | |||
|
|||
@classmethod |
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.
@montezdesousa maybe (in the future) this could be something that lives in a BaseModel
and is inherited for the CredentialsModel
, PreferencesModel
etc
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.
Yes indeed!
* prefix OPENBB_ for .env vars * black * remove prefix only for dataclass * remove openbb_ from setters * don't send pref if sync disabled * fix last commit * add fields methods to handlers
Description
How has this been tested?
Checklist:
feature/feature-name
orhotfix/hotfix-name
.Others