Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#22)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Mar 13, 2024
1 parent 1e6ff47 commit 4d7548c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args:
Expand Down
1 change: 1 addition & 0 deletions hooks/add_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
last_datetime: 2006-12-01 00:12:00 +0800
```
"""

from __future__ import annotations

from datetime import datetime, timedelta, timezone
Expand Down
1 change: 1 addition & 0 deletions hooks/external_link_in_new_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Modified from
https://github.com/squidfunk/mkdocs-material/discussions/3660#discussioncomment-6725823
"""

from urllib.parse import urlparse

import markdown
Expand Down
1 change: 1 addition & 0 deletions hooks/generate_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- `location`:所在地区,例如`北京`,默认`京外`。
"""

from __future__ import annotations

from pathlib import Path
Expand Down

0 comments on commit 4d7548c

Please sign in to comment.