Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.4.2
rev: v3.6.2
hooks:
- id: prettier
types_or:
Expand Down Expand Up @@ -30,21 +30,21 @@ repos:
- id: check-useless-excludes
name: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
name: trailing-whitespace
- id: end-of-file-fixer
name: end-of-file-fixer
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
rev: 0.33.3
hooks:
- id: check-github-workflows
name: check-github-workflows
args:
- --verbose
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.12.10
hooks:
- id: ruff
args:
Expand All @@ -55,7 +55,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
rev: v2.1.4
hooks:
- id: md2po2md
files: ^README\.md
Expand All @@ -74,23 +74,23 @@ repos:
hooks:
- id: remove-metadata
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
rev: v1.37.1
hooks:
- id: yamllint
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.1
rev: v0.18.1
hooks:
- id: markdownlint-cli2
name: markdownlint-readme
files: ^README.md
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.0.3
rev: 3.4.0
hooks:
- id: editorconfig-checker
name: editorconfig-checker
alias: ec
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.17.1
hooks:
- id: mypy
name: mypy-mkdocs-1.5.0
Expand All @@ -100,7 +100,7 @@ repos:
- platformdirs
- wcmatch
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.17.1
hooks:
- id: mypy
name: mypy-mkdocs-1.6.0
Expand Down
2 changes: 1 addition & 1 deletion src/mkdocs_include_markdown_plugin/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_cache_directory(cache_dir: str) -> str | None:
return None

try:
from platformdirs import user_data_dir
from platformdirs import user_data_dir # noqa: PLC0415
except ImportError: # pragma: no cover
return None
else:
Expand Down
2 changes: 1 addition & 1 deletion src/mkdocs_include_markdown_plugin/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def read_url(
encoding: str = 'utf-8',
) -> Any:
"""Read an HTTP location and return its content."""
from urllib.request import Request, urlopen
from urllib.request import Request, urlopen # noqa: PLC0415

if http_cache is not None:
cached_content = http_cache.get_(url, encoding)
Expand Down