Skip to content

Commit

Permalink
[pre-commit.ci] Automatic linting and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 2, 2024
1 parent b6457d9 commit 7a0b654
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 -----------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/pydata.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import pytest
import sphinx.errors

from pydata_sphinx_theme.utils import escape_ansi

COMMON_CONF_OVERRIDES = dict(
Expand Down
1 change: 1 addition & 0 deletions tests/test_short_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from urllib.parse import urlparse

import pytest

from pydata_sphinx_theme.short_link import ShortenLinkTransform


Expand Down
1 change: 1 addition & 0 deletions tests/utils/check_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a0b654

Please sign in to comment.