Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate hooks (#1972)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Sep 3, 2024
1 parent 2b42671 commit 1897922
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down
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 1897922

Please sign in to comment.