Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate hooks #1972

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading