diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4bf01d4..897e86c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -14,7 +14,7 @@ repos: - id: check-toml # Python - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.7.3 hooks: - id: ruff args: [ --fix ] diff --git a/docs/nb.ipynb b/docs/nb.ipynb index 4b3d844..9350ffd 100644 --- a/docs/nb.ipynb +++ b/docs/nb.ipynb @@ -15,8 +15,10 @@ "metadata": {}, "outputs": [], "source": [ - "from dargs.sphinx import _test_argument\n", + "from __future__ import annotations\n", + "\n", "from dargs.notebook import JSON\n", + "from dargs.sphinx import _test_argument\n", "\n", "jstr = \"\"\"\n", "{\n",