Colin Delahunty
1ca7fd9beb
Improves the settings/userdata command, and upgrade ruff ( #5359 )
...
* Began the fax
* Bumped ruff
* Fixed a BUNCH of ruff errors
* Fixed a lot of ruff errors
* Simplify if statements
* Fixed black
* Updated some stuff
* Updated some stuff
* A lot more ruff fixes
* Added a fix
* Added a fix
* Fixed mypy
* Fixed some stuff
* Reverted one thing
* Small fix
* Small fix
* Small fix
* Added fix
* Added fix
* Update requirements
2023-08-22 20:11:48 +00:00
montezdesousa
f0b5cc0aaa
Hub | Fallback to .env + don't upload keys + update support link ( #4756 )
...
* fallback to .env
* dont send keys to hub
* remove keys from upload_config
* display keys hierarchy
* pylint
* fix unittest
* Update session_model.py
* point terminal support to .dev
* rewrite tests
2023-04-13 12:40:02 +00:00
teh_coderer
10e2b38711
init ( #4683 )
2023-04-04 17:34:21 +00:00
teh_coderer
401a78278d
Interactive Charts Improvements ( #4586 )
...
* ship it
* edits to bot docs
* Update generate_sdk_markdown.py
* splitting installation
* Update plotly.html
* no pywry print if using sdk
* Update popups.js
* Update plotly.html
* Update popups.js
* update bot index.mdx's, ramenize generate_index.py
* remove older index.md files
* added logic for light themes, refactor `generate_sdk_markdown.py` for reference cards
* reshow modebar
* Update plotly_helper.py
* fix reset reloading of env files
* refactor doc generation files
* Update plotly_helper.py
* cleanup
* Update generate_sdk_markdown.py
* Update plotly_helper.py
* updates
* fix csv_columns select overflow
* for james with love
* remove division `/ 1000` from options_view
* Update backend.py
* Update popups.js
* csv plot candlestick logic for same Yaxis
* Update plotly_helper.py
* Update plotly.html
---------
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com >
2023-03-27 22:04:41 +00:00
montezdesousa
b6b42afd71
Hub | Add colors, sources sync ( #4546 )
...
* fix show version
* update login prompt and account
* update set preference
* fix account controller
* block login/logout if not called from account
* change conditions to start terminal
* fix required args account model
* add not to login command
* pylint
* accounte controller messages
* set default user when logout
* logout then show menu
* remove unused functions
* fix logging bug
* ruff
* fix account unittests
* fix session unittests
* refactor colors preference
* no theme, no party
* add colors sync
* dynamic theme
* add comment
* add colors to settings
* ruff
* linting
* update menu desc
* adjust keys sync flag
* write to dotenv sync flag
* english
* fix pull command
* fix edge cases
* handle some errors
* small bug
* change func name
* pylint
* no light
* colors preview
* ruff
* fix login logout preferences
* ruff
* delete folder
* pylint
* default, custom, hub
* fix clear
* docstring
* add preference exceptions
* set only rich style
* request theme only if hub
* linting
* change guest msg
* add option to update chart style on the fly
* apply style
* rollback to old terminal style
* fix console theme
* remove print
* remove hub rich style
* ruff
* mypy
* black
* Hub | Add sources sync (#4565 )
* Add sources model
* adapt session model
* fetch sources dict
* rename local funcs
* set sources inside current user
* set sources inside current user
* generate sources dict from hub
* fix dict generator
* send request to hub
* fix conflict
* revert datasources to develop head
* fix docstring
* avoid invalid patch types
* add default option to sources
* fix small bug on sources
* ruff
* black
* remove (
* mypy failing only on git
* ignore mypy
* pylint
* fix settings controller
* Tests: fix keys model writing to .env
* fix keys controller test writing to .env
* ruff
* Test: fix account controller
* Test: fix account controller pull
* Tests: fix launch terminal
* Test: add sources to user object
* Tests: fix clear cmd tests
* ruff
* revert core/sdk changes
* TerminalStyle docstring
* upload config docstring
* remove comment
* remove unecessary pylint disable
* revert openbb_terminal/sdk changes
* Terminal style docstring
* docstring
* remove unecessary changes
* add TODO
* add other todo
* Tests: prevent sync from being written in .env
* change clear msg
* display sources source on menu
* update settings controller
* display keys source
* black
* sync not needed for pull
* remove sync from apply configs
* change func name for consistency
* Update test_keys_model.py
* save rich style in user folder
* search recursively inside styles
* set hub theme by default
* remove debug print
* allow any plot style
* comment plotstyle sync for now
* fix sources set terminal to hub
* ruff
* rewrite cassettes
* remove repeated settings
* rewrite expected
2023-03-27 16:59:36 +00:00
Henrique Joaquim
937d033160
Adds BaseModel and SystemModel ( #4491 )
...
* adding BaseModel
* initial version of the system model
* creating setup functions and removing constants from config_terminal
* removing log_supress const
* fix test
* merge
* system handler
* fix import
* centralized configs setup
* repr to use the BaseModel
* updating i18n dict location
* ignoring warning on wrong type-var
* ruff
* Update openbb_terminal/core/models/system_model.py
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* Update openbb_terminal/core/models/system_model.py
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* import literal
* loading env files before the plot backend is called
* fix tests/openbb_terminal/test_terminal_helper.py
* tests need to have i18n initialized
* fix seeking_alpha tests
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
2023-03-22 15:00:58 +00:00
montezdesousa
18b82a7d80
Hub | save preferences locally ( #4494 )
...
* remove preferences sync
* refactor preferences handler
* change func name
* remove credentials handler + add writedotenv
* remove flair and sync from cloud
* read flair from env dict
* remove unused func
* simplify func
* ruff
* mypy
* remove token from keys
* simplify handle credential
* save exception load env just in case
* uncomment dev link
* pylint
* fix accounte controller
* fix sdk keys bug
* fix bug on apply_configs
* fix feature flags controller tests
* mock properly
* remove comment
* fix more tests
* fix test
* fix screeninfo
* update ff controller after develop merge
* fix sync test
2023-03-16 16:58:10 +00:00
montezdesousa
5a69fba516
Prefix OPENBB_ for .env vars ( #4475 )
...
* 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
2023-03-14 13:42:47 +00:00
montezdesousa
bea21dff28
Handle pydantic ValidationError reading .env ( #4456 )
...
* move tradier to data providers
* handle env load errors
* improve message
* detail model in message
2023-03-10 23:07:40 +00:00
montezdesousa
475ebb5acd
[WIP] Migrate user, feature flags and configurations to dataclass ( #4309 )
...
* implement user and change is guest
* replace User methods
* move remaining functions to user
* fix bug
* portfolio test
* fix tests
* fix tests
* uncomment skip
* ruff
* start credentials model implementation
* change deault structure
* refacto quandl
* change default struct and file names
* bug
* start using global user
* add comments
* move update flair
* change cfg references in keys model
* reddit & fmp
* refactore additional keys
* remaing config keys
* remove unsude imports and fix hub keys
* ruff
* fix line too long
* unblock unittests
* fix keys model tests
* remove os patch
* fix account controller tests
* fix account controller tests
* fix account model
* account fixed
* fix user tests
* User Model
* User Model
* User Model
* Move session folder
* User Model : grouping the models
* User Model : fix bugs
* Config Plot + bug fix
* User Model : Refactoring plots
* Feature flags
* Remove dup
* clean comments a fix some vars
* fix feature flags controller
* refactor obbff from settings controller
* refactor a bunch of obbff variables
* fix bug blocking terminal
* fix integration tests
* refactor controllers with obbff
* refactor remaining ffs
* remove comments
* log not started
* mispelled variable
* set current user on local model
* User Model : moving files + updating
* User Preferences
* User : Refactor is_guest function + bug fix
* User : refactor is_guest function
* Fix conftest.py
* remove lost obbffs
* typo on fileoverwrite
* Plot config: move variables and start plot dpi
* User : tests
* refactor plot dpi references
* remove plot dpi imports
* refactor some config terminal leftover
* /account/sync : fix bug
* remove configs reload
* start path refactor
* installation paths vs user paths
* remove cfg_plot
* Tests : User Refactoring
* user prefix only for preferences
* user prefix only for preferences
* move user paths
* remove comment
* update apply remote configs
* fix tz not updating
* save some copys
* small fix
* create interface for credentials and preferences
* wrong docstrings fixed
* ruff core
* fix some pref setting
* login is better
* ruff
* ruff
* remove Literal
* add small comment
* Tests : User Refactoring
* Credentials Model : add DataBento
* Fix helper_funcs
* Fixing code
* Tests : fixing
* User Model : freezing the models
* Fixed Income + Databento
* Tests : fixing keys
* black
* ruff
* Tests : user model
* Tests : user model
* Fix linting
* Fix linting
* Linting
* Linting
* Fixing code and tests
* Fix tests
* mypy
* SDK
* Clean ruff cache
* Fix syntax issue
* Update fred_view
* Black
* Linting
* Update code
* Update tests
* Linting
* Linting
* Tests
* Black
* Linting
* Linting
* Mock os.listdir to avoid looking for file that doesnt exist
* Mock options paths
* lint
* Tests : fix
* Code : update
* Tests + Linting
* Tests
* Ruff
* Code : update
* Tests
* Code : update
* Fix workflow
* Code : update
---------
Co-authored-by: Chavithra PARANA <chavithra@gmail.com >
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-03-05 00:37:19 +01:00