From 63a3c0659b2eae52397d41a0bed31e96c53128bc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 02:15:08 +0000 Subject: [PATCH] Update black (#339) (#340) (cherry picked from commit 19630eee17f6a5895ca56d207578d3067f386994) Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> --- docs/tutorials/11_time_series.ipynb | 16 ++++++++-------- requirements-dev.txt | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/tutorials/11_time_series.ipynb b/docs/tutorials/11_time_series.ipynb index 95d2d5ac..3d2c808a 100644 --- a/docs/tutorials/11_time_series.ipynb +++ b/docs/tutorials/11_time_series.ipynb @@ -181,13 +181,13 @@ ], "source": [ "print(\"The underlying evolution of stock prices:\")\n", - "for (cnt, s) in enumerate(data._tickers):\n", + "for cnt, s in enumerate(data._tickers):\n", " plt.plot(data._data[cnt], label=s)\n", "plt.legend()\n", "plt.xticks(rotation=90)\n", "plt.show()\n", "\n", - "for (cnt, s) in enumerate(data._tickers):\n", + "for cnt, s in enumerate(data._tickers):\n", " print(s)\n", " print(data._data[cnt])" ] @@ -231,7 +231,7 @@ " seed=1,\n", ")\n", "data.run()\n", - "for (cnt, s) in enumerate(data._tickers):\n", + "for cnt, s in enumerate(data._tickers):\n", " plt.plot(data._data[cnt], label=s)\n", "plt.legend()\n", "plt.xticks(rotation=90)\n", @@ -345,13 +345,13 @@ "if token != \"REPLACE-ME\":\n", " if wiki._data:\n", " print(\"The underlying evolution of stock prices:\")\n", - " for (cnt, s) in enumerate(stocks):\n", + " for cnt, s in enumerate(stocks):\n", " plt.plot(wiki._data[cnt], label=s)\n", " plt.legend()\n", " plt.xticks(rotation=90)\n", " plt.show()\n", "\n", - " for (cnt, s) in enumerate(stocks):\n", + " for cnt, s in enumerate(stocks):\n", " print(s)\n", " print(wiki._data[cnt])\n", " else:\n", @@ -398,7 +398,7 @@ " end=datetime.datetime(2016, 1, 2),\n", " )\n", " nasdaq.run()\n", - " for (cnt, s) in enumerate(nasdaq._tickers):\n", + " for cnt, s in enumerate(nasdaq._tickers):\n", " plt.plot(nasdaq._data[cnt], label=s)\n", " plt.legend()\n", " plt.xticks(rotation=90)\n", @@ -442,7 +442,7 @@ " end=datetime.datetime(2018, 12, 31),\n", " )\n", " lse.run()\n", - " for (cnt, s) in enumerate(lse._tickers):\n", + " for cnt, s in enumerate(lse._tickers):\n", " plt.plot(lse._data[cnt], label=s)\n", " plt.legend()\n", " plt.xticks(rotation=90)\n", @@ -483,7 +483,7 @@ " end=datetime.datetime(2021, 12, 31),\n", " )\n", " data.run()\n", - " for (cnt, s) in enumerate(data._tickers):\n", + " for cnt, s in enumerate(data._tickers):\n", " plt.plot(data._data[cnt], label=s)\n", " plt.legend(loc=\"upper center\", bbox_to_anchor=(0.5, 1.1), ncol=3)\n", " plt.xticks(rotation=90)\n", diff --git a/requirements-dev.txt b/requirements-dev.txt index abc69a27..b2dac740 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,6 @@ coverage>=4.4.0 matplotlib>=2.1 -black[jupyter]~=22.0 +black[jupyter]~=24.1 pylint>=2.16.2 pylatexenc>=1.4 stestr>=2.0.0