diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a8eb3d90..c16a2b34c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: # Autoformat and linting, misc. details - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: forbid-new-submodules - id: end-of-file-fixer @@ -25,12 +25,12 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.7 + rev: v0.8.1 hooks: - id: ruff args: ['--fix'] diff --git a/notebooks/bokeh.ipynb b/notebooks/bokeh.ipynb index 387c70189..796857970 100644 --- a/notebooks/bokeh.ipynb +++ b/notebooks/bokeh.ipynb @@ -99,7 +99,6 @@ "metadata": {}, "outputs": [], "source": [ - "import os\n", "from urllib.parse import urlparse\n", "\n", "url = urlparse(os.environ.get(\"VOILA_REQUEST_URL\"))\n", diff --git a/notebooks/dashboard.ipynb b/notebooks/dashboard.ipynb index cf0c2bce7..b99a8eac4 100644 --- a/notebooks/dashboard.ipynb +++ b/notebooks/dashboard.ipynb @@ -77,7 +77,6 @@ "source": [ "import numpy as np\n", "from bqplot import pyplot as plt\n", - "import bqplot\n", "\n", "fig = plt.figure( title='Line Chart')\n", "np.random.seed(0)\n", diff --git a/notebooks/ipympl.ipynb b/notebooks/ipympl.ipynb index 64da94d89..4b70f2849 100644 --- a/notebooks/ipympl.ipynb +++ b/notebooks/ipympl.ipynb @@ -16,7 +16,6 @@ "outputs": [], "source": [ "%matplotlib widget\n", - "import ipympl\n", "\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", diff --git a/notebooks/mimerenderers.ipynb b/notebooks/mimerenderers.ipynb index 1ddf44ed9..143ba6201 100644 --- a/notebooks/mimerenderers.ipynb +++ b/notebooks/mimerenderers.ipynb @@ -9,7 +9,7 @@ "source": [ "from IPython.display import display\n", "from IPython.display import (\n", - " HTML, Image, Latex, Math, Markdown, SVG\n", + " HTML, Image, Latex, Markdown, SVG\n", ")" ] }, @@ -283,7 +283,6 @@ "outputs": [], "source": [ "from IPython.display import display\n", - "import pandas as pd\n", "\n", "def Vega(spec):\n", " bundle = {}\n", diff --git a/notebooks/yaml.ipynb b/notebooks/yaml.ipynb index 7f3fb2d6f..6cd430bba 100644 --- a/notebooks/yaml.ipynb +++ b/notebooks/yaml.ipynb @@ -7,8 +7,7 @@ "metadata": {}, "outputs": [], "source": [ - "from IPython.display import Markdown, clear_output\n", - "from ipywidgets import ToggleButton, Output\n", + "from IPython.display import Markdown\n", "import json\n", "import yaml\n", "\n",