From e6c323104593bdfeccea5996b8643f38c51b66f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:43:13 +0000 Subject: [PATCH 1/2] Bump orjson from 3.8.13 to 3.9.15 in /book Bumps [orjson](https://github.com/ijl/orjson) from 3.8.13 to 3.9.15. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](https://github.com/ijl/orjson/compare/3.8.13...3.9.15) --- updated-dependencies: - dependency-name: orjson dependency-type: indirect ... Signed-off-by: dependabot[bot] --- book/requirements.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/book/requirements.txt b/book/requirements.txt index ca3dfec..65347b0 100644 --- a/book/requirements.txt +++ b/book/requirements.txt @@ -102,6 +102,10 @@ docutils==0.18.1 # sphinxcontrib-bibtex email-validator==2.0.0.post2 # via fastapi +exceptiongroup==1.2.0 + # via + # cattrs + # pytest executing==1.2.0 # via stack-data fastapi[all]==0.95.2 @@ -284,7 +288,7 @@ numpy==1.24.3 # numba # pandas # scipy -orjson==3.8.13 +orjson==3.9.15 # via fastapi overrides==7.4.0 # via jupyter-server @@ -495,6 +499,10 @@ terminado==0.17.1 # jupyter-server-terminals tinycss2==1.2.1 # via nbconvert +tomli==2.0.1 + # via + # jupyterlab + # pytest toolz==0.12.0 # via altair tornado==6.3.3 @@ -522,6 +530,7 @@ traitlets==5.9.0 # nbformat typing-extensions==4.6.1 # via + # altair # async-lru # myst-nb # myst-parser From a920bbe0f17f5cb908fbeb1969eb0bab7f061dfc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:43:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- lectures/pandas/PublicAPIs.ipynb | 6 +++--- .../monty-hall-game4/monty_hall_game/__main__.py | 2 +- lectures/python/exercises.ipynb | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lectures/pandas/PublicAPIs.ipynb b/lectures/pandas/PublicAPIs.ipynb index 1c80de7..65b02ac 100644 --- a/lectures/pandas/PublicAPIs.ipynb +++ b/lectures/pandas/PublicAPIs.ipynb @@ -3320,9 +3320,9 @@ "source": [ "url = \"https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=51.5&lon=0\"\n", "s = requests.Session()\n", - "s.headers[\n", - " \"User-Agent\"\n", - "] = \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n", + "s.headers[\"User-Agent\"] = (\n", + " \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n", + ")\n", "r = s.get(url)\n", "r" ] diff --git a/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py b/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py index 27d14a7..9ae637f 100644 --- a/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py +++ b/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py @@ -1,4 +1,4 @@ from .cli import main if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/lectures/python/exercises.ipynb b/lectures/python/exercises.ipynb index 0bc0490..a26d0c0 100644 --- a/lectures/python/exercises.ipynb +++ b/lectures/python/exercises.ipynb @@ -404,8 +404,7 @@ "metadata": {}, "outputs": [], "source": [ - "class Square(...):\n", - " ...\n", + "class Square(...): ...\n", "\n", "\n", "sq = Square(5)\n",