Skip to content

Commit de0d7a1

Browse files
[pre-commit.ci] pre-commit autoupdate (#75)
<!--pre-commit.ci start--> updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.7.3](astral-sh/ruff-pre-commit@v0.5.1...v0.7.3) <!--pre-commit.ci end--> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated the `ruff-pre-commit` tool to a newer version (v0.6.1), which may enhance performance and introduce improvements to pre-commit hooks. - **Documentation** - Improved organization and readability of the Jupyter notebook's import statements, enhancing clarity regarding type annotations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 186a059 commit de0d7a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -14,7 +14,7 @@ repos:
1414
- id: check-toml
1515
# Python
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.5.1
17+
rev: v0.7.3
1818
hooks:
1919
- id: ruff
2020
args: [ --fix ]

docs/nb.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
18-
"from dargs.sphinx import _test_argument\n",
18+
"from __future__ import annotations\n",
19+
"\n",
1920
"from dargs.notebook import JSON\n",
21+
"from dargs.sphinx import _test_argument\n",
2022
"\n",
2123
"jstr = \"\"\"\n",
2224
"{\n",

0 commit comments

Comments
 (0)