diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 02e0c28..9c4bd55 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -108,9 +108,10 @@ { // .pre-commit-config.yaml version updates fileMatch: [".pre-commit-config.yaml"], - depTypeTemplate: "devDependencies", + datasourceTemplate: "pypi", + depTypeTemplate: "lint", matchStrings: [ - "# renovate: datasource=(?\\S+);\\s*depName=(?.*?)\n\\s+rev: \"v?(?.*?)\"" + "- repo: .*/<(?\\S+)\\s*\\n\\s*rev:\s+\"?v?(?\\S*)\"?", ] } ], diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c44e4de..f84e07a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: "v4.4.0" hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -12,19 +12,16 @@ repos: - id: check-toml - id: fix-byte-order-marker - id: mixed-line-ending - - repo: https://github.com/charliermarsh/ruff-pre-commit - # renovate: datasource=pypi;depName=lint/ruff + - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.1.15" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - # renovate: datasource=pypi;depName=lint/black rev: "24.1.1" hooks: - id: black - repo: https://github.com/adrienverge/yamllint.git - # renovate: datasource=pypi;depName=lint/yamllint rev: "v1.33.0" hooks: - id: yamllint