From da1c95ff1d52653d91e3fe7377d132d50fd84930 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:19:21 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.7.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.1...v0.7.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ] From 8ef9ce24aafd0ffcb4d54d254cdff8adb1780732 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:19:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/nb.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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",