diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e39fda91d..70f48e333 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.6" + rev: "v0.6.3" hooks: - id: ruff @@ -38,13 +38,13 @@ repos: args: [--py37-plus] - repo: https://github.com/Riverside-Healthcare/djLint - rev: v1.34.1 + rev: v1.35.2 hooks: - id: djlint-jinja types_or: ["html"] - repo: https://github.com/PyCQA/doc8 - rev: v1.1.1 + rev: v1.1.2 hooks: - id: doc8 @@ -59,7 +59,7 @@ repos: - id: remove-metadata - repo: https://github.com/thibaudcolas/pre-commit-stylelint - rev: v16.8.1 + rev: v16.9.0 hooks: - id: stylelint # automatically fix .scss files where possible diff --git a/docs/conf.py b/docs/conf.py index 71d00bcc0..af71a33ec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,10 +11,11 @@ from pathlib import Path from typing import Any, Dict -import pydata_sphinx_theme from sphinx.application import Sphinx from sphinx.locale import _ +import pydata_sphinx_theme + sys.path.append(str(Path(".").resolve())) # -- Project information ----------------------------------------------------- diff --git a/docs/examples/pydata.ipynb b/docs/examples/pydata.ipynb index c63a73321..64c273503 100644 --- a/docs/examples/pydata.ipynb +++ b/docs/examples/pydata.ipynb @@ -48,9 +48,9 @@ "metadata": {}, "outputs": [], "source": [ - "import pandas as pd\n", - "import numpy as np\n", "import ipywidgets as widgets\n", + "import numpy as np\n", + "import pandas as pd\n", "from IPython.display import display\n", "\n", "tab = widgets.Tab()\n", @@ -122,9 +122,8 @@ "metadata": {}, "outputs": [], "source": [ - "import plotly.io as pio\n", "import plotly.express as px\n", - "import plotly.offline as py\n", + "import plotly.io as pio\n", "\n", "pio.renderers.default = \"notebook\"\n", "\n", @@ -149,6 +148,7 @@ "outputs": [], "source": [ "import xarray as xr\n", + "\n", "data = xr.DataArray(\n", " np.random.randn(2, 3),\n", " dims=(\"x\", \"y\"),\n", diff --git a/tests/test_build.py b/tests/test_build.py index 8ff73d820..f782e4751 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -5,6 +5,7 @@ import pytest import sphinx.errors + from pydata_sphinx_theme.utils import escape_ansi COMMON_CONF_OVERRIDES = dict( diff --git a/tests/test_short_url.py b/tests/test_short_url.py index 37af9a85e..7a1d0eef0 100644 --- a/tests/test_short_url.py +++ b/tests/test_short_url.py @@ -3,6 +3,7 @@ from urllib.parse import urlparse import pytest + from pydata_sphinx_theme.short_link import ShortenLinkTransform diff --git a/tests/utils/check_warnings.py b/tests/utils/check_warnings.py index 726a81c7b..c8bcafc65 100644 --- a/tests/utils/check_warnings.py +++ b/tests/utils/check_warnings.py @@ -4,6 +4,7 @@ from pathlib import Path from colorama import Fore, init + from pydata_sphinx_theme.utils import escape_ansi # init colors for all plateforms