Skip to content

Commit 577e067

Browse files
Upgrade pre-commit hooks revisions (#268)
Co-authored-by: Álvaro Mondéjar Rubio <[email protected]>
1 parent 1062404 commit 577e067

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/rbubley/mirrors-prettier
3-
rev: v3.4.2
3+
rev: v3.6.2
44
hooks:
55
- id: prettier
66
types_or:
@@ -30,21 +30,21 @@ repos:
3030
- id: check-useless-excludes
3131
name: check-useless-excludes
3232
- repo: https://github.com/pre-commit/pre-commit-hooks
33-
rev: v5.0.0
33+
rev: v6.0.0
3434
hooks:
3535
- id: trailing-whitespace
3636
name: trailing-whitespace
3737
- id: end-of-file-fixer
3838
name: end-of-file-fixer
3939
- repo: https://github.com/python-jsonschema/check-jsonschema
40-
rev: 0.30.0
40+
rev: 0.33.3
4141
hooks:
4242
- id: check-github-workflows
4343
name: check-github-workflows
4444
args:
4545
- --verbose
4646
- repo: https://github.com/astral-sh/ruff-pre-commit
47-
rev: v0.8.4
47+
rev: v0.12.10
4848
hooks:
4949
- id: ruff
5050
args:
@@ -55,7 +55,7 @@ repos:
5555
hooks:
5656
- id: autopep8
5757
- repo: https://github.com/mondeja/mdpo
58-
rev: v2.1.3
58+
rev: v2.1.4
5959
hooks:
6060
- id: md2po2md
6161
files: ^README\.md
@@ -74,23 +74,23 @@ repos:
7474
hooks:
7575
- id: remove-metadata
7676
- repo: https://github.com/adrienverge/yamllint
77-
rev: v1.35.1
77+
rev: v1.37.1
7878
hooks:
7979
- id: yamllint
8080
- repo: https://github.com/DavidAnson/markdownlint-cli2
81-
rev: v0.17.1
81+
rev: v0.18.1
8282
hooks:
8383
- id: markdownlint-cli2
8484
name: markdownlint-readme
8585
files: ^README.md
8686
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
87-
rev: 3.0.3
87+
rev: 3.4.0
8888
hooks:
8989
- id: editorconfig-checker
9090
name: editorconfig-checker
9191
alias: ec
9292
- repo: https://github.com/pre-commit/mirrors-mypy
93-
rev: v1.14.1
93+
rev: v1.17.1
9494
hooks:
9595
- id: mypy
9696
name: mypy-mkdocs-1.5.0
@@ -100,7 +100,7 @@ repos:
100100
- platformdirs
101101
- wcmatch
102102
- repo: https://github.com/pre-commit/mirrors-mypy
103-
rev: v1.14.1
103+
rev: v1.17.1
104104
hooks:
105105
- id: mypy
106106
name: mypy-mkdocs-1.6.0

src/mkdocs_include_markdown_plugin/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_cache_directory(cache_dir: str) -> str | None:
7878
return None
7979

8080
try:
81-
from platformdirs import user_data_dir
81+
from platformdirs import user_data_dir # noqa: PLC0415
8282
except ImportError: # pragma: no cover
8383
return None
8484
else:

src/mkdocs_include_markdown_plugin/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def read_url(
608608
encoding: str = 'utf-8',
609609
) -> Any:
610610
"""Read an HTTP location and return its content."""
611-
from urllib.request import Request, urlopen
611+
from urllib.request import Request, urlopen # noqa: PLC0415
612612

613613
if http_cache is not None:
614614
cached_content = http_cache.get_(url, encoding)

0 commit comments

Comments
 (0)