mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
* bump pywry * fix windows pyinstaller subprocess fail if space in path * remove API_IEX_TOKEN * remove API_SENTIMENTINVESTOR_TOKEN * added logic to download_routines and save_routine to put default and personal routines in difference folders and changed logic in call_dowload in account controller to account for the change in logic for save_routine * Changed logic in read_routine function to account for the new directory structure and also changed the corresponding unit tests. Slightly amended test_save_routine to account for the new routine param * Changed the routine parameter of mock_save_routine.assert_called_once_with to account for the change in the input parameter of the save_routine function * changed routine string in test_routines_handler * Made unit tests for download_routines in routines_handler. * added comments * Added new logic to call_exe so that a user could execute the file with --file default/filename.openbb, --file personal/filename.openbb or --file Users/Username/openBBUserData/Routines/hub/default/filename.openbb * linting: black * linting: ruff * ruff broke black * removed regex in call_exe and changed logic in call_download to give personal routines priority * Changed formatting * Changed formatting and removed regex from call_exe * Created class variables and moved dictionaries out of constructor to solve linting issue. Changed routine args type annotation Changed data list * Added type annotations for the dictionary class variables * Changed data annotation type for routine dictionaries * Moved dictionaries back into constructor * removed import pathlib * ruff * mypy * pylint --------- Co-authored-by: James Maslek <jmaslek11@gmail.com> Co-authored-by: teh_coderer <me@tehcoderer.com> Co-authored-by: Diogo Sousa <montezdesousa@gmail.com> Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>