From 1145e8a10115baf86ca4de9c91cc838e09c69957 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:59:44 +0000 Subject: [PATCH] Update pre-commit dependencies (#809) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Micha Reiser --- .markdownlint.yaml | 4 ++++ .pre-commit-config.yaml | 14 +++++++------- pyproject.toml | 1 + scripts/transform_readme.py | 3 +-- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.markdownlint.yaml b/.markdownlint.yaml index ca45856..a361d0a 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -29,3 +29,7 @@ MD024: # # Ref: https://github.com/astral-sh/ruff/pull/15011#issuecomment-2544790854 MD046: false + +# Link text should be descriptive +# Disallows link text like *here* which is annoying. +MD059: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61e73bb..fec2b99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ exclude: | repos: - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.7.3 + rev: 0.7.20 hooks: - id: uv-lock - repo: https://github.com/pre-commit/pre-commit-hooks @@ -18,7 +18,7 @@ repos: - id: check-merge-conflict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.8 + rev: v0.12.2 hooks: - id: ruff-format - id: ruff @@ -40,18 +40,18 @@ repos: - mdformat-footnote==0.1.1 - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.44.0 + rev: v0.45.0 hooks: - id: markdownlint-fix - repo: https://github.com/crate-ci/typos - rev: v1.32.0 + rev: v1.34.0 hooks: - id: typos # Prettier - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.5.3 + rev: v3.6.2 hooks: - id: prettier types: [yaml] @@ -59,12 +59,12 @@ repos: # zizmor detects security vulnerabilities in GitHub Actions workflows. # Additional configuration for the tool is found in `.github/zizmor.yml` - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.6.0 + rev: v1.11.0 hooks: - id: zizmor - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.33.2 hooks: - id: check-github-workflows diff --git a/pyproject.toml b/pyproject.toml index 34d194c..c16b30a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ cache-keys = [ [tool.ruff] extend-exclude = ["ruff"] +per-file-target-version = { "scripts/**" = "py313" } [tool.ruff.lint] select = [ diff --git a/scripts/transform_readme.py b/scripts/transform_readme.py index 004a814..132cd64 100644 --- a/scripts/transform_readme.py +++ b/scripts/transform_readme.py @@ -7,11 +7,10 @@ PyPI includes the README with different rendering. from __future__ import annotations import re +import tomllib import urllib.parse from pathlib import Path -import tomllib - def main() -> None: """Modify the README.md to support PyPI."""