Commit Graph

19 Commits

Author SHA1 Message Date
Andrew Barnes
ff7500065b test: add coverage for CLI utility functions (#7422)
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2026-03-24 16:47:01 +00:00
John Seong
86ec79d75f [BugFix] CLI parser splits comma-separated flag values into separate args (#7420)
* fix: preserve comma-separated values for flagged CLI arguments

The CLI argument parser was splitting all comma-separated values into
separate positional args before argparse could process them. This caused
multi-symbol queries like --symbol AAPL,MSFT,GOOGL to fail with
'args couldn't be interpreted' for all symbols after the first.

Flag values are now identified by checking whether the preceding token
is a known option string with nargs != 0, and their commas are preserved
so the provider receives the original comma-separated string.

* test: add coverage for comma-split fix in parse_known_args_and_warn

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2026-03-22 20:00:08 +00:00
Danglewood
d3537dd155 [Feature] Add Support For Python 3.14 (#7349)
* add support for Python 3.14

* escape % in argparse_translator in help strings

* black

* cli python version string

* fix test param placeholder

* fix integration_tests_testers

* add 3.14 to ODP Desktop environment creation choices

* partial lock update

* update lock files

* and the rest of the locks

---------

Co-authored-by: deeleeramone <>
2026-02-18 00:40:18 +00:00
Danglewood
1bbf209060 [BugFix] openbb-cli: Handle Pipe Union Types in argparse_translator (#7257)
* handle pipe union types in argparse_translator

* lock file
2025-10-30 02:00:14 +00:00
Danglewood
467a2f3b1a [Feature] Remove Account Module and HubService (#7236)
* remove account module

* unused import

* fix test module
2025-10-11 22:53:06 +00:00
Danglewood
9f0d592839 [Feature] Remove Python 3.9 (#7235)
* remove python 3.9 support and code

* black

* more cli lint

* more linting

* more lint

* fix for tests

* docstring grammar police

* add lock to to build function to avoid async import race conditions

* grammar police

* lots more linting

* relock
2025-10-10 23:16:16 +00:00
Danglewood
7d7456a938 [BugFix] Run ruff check --fix (#6984)
* run ruff check --fix on openbb-core

* rest of the repo

* black

* type: ignore

* more linting
2024-12-07 14:18:05 +00:00
Danglewood
8b9f461dca [Enhancement] Convert Params Models To Dictionary Before Assigning As Private Attribute In OBBject. (#6492)
* convert params models to dict

* update cli test

* fix test_static_command_runner_chart

* mock_obbject results

* minor linting adjustments

* review changes

* charting test mock obbject

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-06-13 08:12:55 +00:00
Henrique Joaquim
413cce8302 remove remember contexts setting (#6496) 2024-06-12 10:56:03 +00:00
montezdesousa
174f2893dc [Feature] Generate settings menu from pydantic model (#6489)
* Generate settings menu from pydantic model

* fix tests

* fix test

* undo changes

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-06-12 09:22:29 +00:00
montezdesousa
a52b24c16b [BugFix] - Fix pylint possibly-used-before-assignment (#6484)
* fix: comply w/ possibly used before assignment

* remove disabe from .pylintrc

* remove reset test

* remove reset test

* fix: update missing keys message
2024-06-05 15:40:24 +00:00
montezdesousa
784cecbe5f [BugFix] Pre release fixes (#6478)
* fix: tests

* fix: rebuild

* fix: hub test
2024-06-04 13:16:07 +00:00
Henrique Joaquim
f860c6d797 [Feature] Optional choices (#6463)
* using the custom argument to leverage validation

* restructure

* better handling of variables and props

* optional choices

* utilities module

* proper handling of optional choices attr

* setattr

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-06-04 07:57:36 +00:00
Henrique Joaquim
8a63c2df3e [Bugfix] Remove svg export (#6476)
* lint

* fix version

* add url functionality to the charting extension

* small adjustments and removing unused function

* remove svg

* remove unused function

* better messages

* version can't be asserted bc will change
2024-06-03 13:28:57 +00:00
Henrique Joaquim
f91791dbf9 [BugFix] Revamp the usage of list syntax on routines (#6450)
* using list syntax on routines

* black

* ruff

* simplify

* black
2024-05-22 11:46:19 +00:00
Henrique Joaquim
7efe96c4d5 [Feature] Small CLI docs style improvements (#6429)
* use platform cli everywhere

* cli w same color as platform

* same colors as platform

* fix tests
2024-05-17 12:50:08 +00:00
montezdesousa
4c4f57fa78 [BugFix] - dev_install.py updates (#6424)
* fix: use tomlkit instead of toml & add --cli

* fix: remove cli option, poetry groups ignored by pip

* fix: redirect unittest patch

* adding --cli to the dev install

---------

Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
2024-05-16 17:14:30 +00:00
Igor Radovanovic
a116d9bbf2 [Feature] - OpenBB Platform CLI Unit tests (#6397)
* Unit test batch 1

* CLI controller

* Test batch 3

* Test batch 4

* Test batch 5

* clean some workflows and setup actions

* test

* rename wfs

* rename

* update action

* Skip

* fix cli tests

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-14 15:38:06 +00:00
montezdesousa
cc15a770da [Feature] - Rename terminal folder (#6349)
* rename terminal folder

* docstring

* Rename to openbb_cli

* rename constant

* rename .his file

* pyproject.toml

* Update pre-commit and remove docker-build.yml
2024-04-30 12:42:31 +00:00