diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9520424..c3c989f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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: @@ -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 @@ -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 @@ -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 diff --git a/src/mkdocs_include_markdown_plugin/cache.py b/src/mkdocs_include_markdown_plugin/cache.py index e00ff85..f3ce83d 100644 --- a/src/mkdocs_include_markdown_plugin/cache.py +++ b/src/mkdocs_include_markdown_plugin/cache.py @@ -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: diff --git a/src/mkdocs_include_markdown_plugin/process.py b/src/mkdocs_include_markdown_plugin/process.py index f16eedd..1576ed6 100644 --- a/src/mkdocs_include_markdown_plugin/process.py +++ b/src/mkdocs_include_markdown_plugin/process.py @@ -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)