From a8a2f6a5888d82c75fcc98d35c04e96e7d243b25 Mon Sep 17 00:00:00 2001 From: Daniel Goldfarb Date: Tue, 11 Jan 2022 19:52:16 -0500 Subject: [PATCH 1/4] tweak .gitignore --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f9b2210e..1a254b16 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,4 @@ __pycache__ .tox/ .cache/ *.code-workspace -examples/.ipynb_checkpoints/ -examples/scratch_pad/.ipynb_checkpoints/ +*.ipynb_checkpoints/ From 211431ad082be52b13838cea3fa1d5812a828769 Mon Sep 17 00:00:00 2001 From: Daniel Goldfarb Date: Tue, 11 Jan 2022 22:37:27 -0500 Subject: [PATCH 2/4] bug fix; add description to `style_name` --- src/mplfinance/_styles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mplfinance/_styles.py b/src/mplfinance/_styles.py index 62ce2eca..c57894bf 100644 --- a/src/mplfinance/_styles.py +++ b/src/mplfinance/_styles.py @@ -114,6 +114,7 @@ def _valid_make_mpf_style_kwargs(): 'Validator' : lambda value: isinstance(value,dict) }, 'style_name' : { 'Default' : None, + 'Description' : '', 'Validator' : lambda value: isinstance(value,str) }, } From 882bd9162b4cb41edb4d65fed3a6786410bc679a Mon Sep 17 00:00:00 2001 From: Daniel Goldfarb Date: Tue, 11 Jan 2022 22:47:06 -0500 Subject: [PATCH 3/4] add ability to sort kwargs in `kwarg_help()` --- src/mplfinance/_kwarg_help.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mplfinance/_kwarg_help.py b/src/mplfinance/_kwarg_help.py index ee5e70ca..c4ea52b5 100644 --- a/src/mplfinance/_kwarg_help.py +++ b/src/mplfinance/_kwarg_help.py @@ -57,7 +57,7 @@ def left_formatter(value): return left_formatter -def kwarg_help( func_name=None, kwarg_names=None ): +def kwarg_help( func_name=None, kwarg_names=None, sort=False ): func_kwarg_map = { 'plot' : mpf.plotting._valid_plot_kwargs, @@ -113,6 +113,7 @@ def kwarg_help( func_name=None, kwarg_names=None ): df = (pd.DataFrame(vks).T).drop('Validator',axis=1) df.index.name = 'Kwarg' + if sort: df.sort_index(inplace=True) df.reset_index(inplace=True) if kwarg_names is not None: From 418ff1f3af53ad2e36606db52f6bf8039253a445 Mon Sep 17 00:00:00 2001 From: Daniel Goldfarb Date: Tue, 11 Jan 2022 22:51:25 -0500 Subject: [PATCH 4/4] bump version --- src/mplfinance/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mplfinance/_version.py b/src/mplfinance/_version.py index 9af54986..88fb1967 100644 --- a/src/mplfinance/_version.py +++ b/src/mplfinance/_version.py @@ -1,5 +1,5 @@ -version_info = (0, 12, 8, 'beta', 7) +version_info = (0, 12, 8, 'beta', 8) _specifier_ = {'alpha': 'a','beta': 'b','candidate': 'rc','final': ''}