diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c18b7e1f..7aad7da5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,21 @@ repos: args: [--exit-non-zero-on-fix] - id: ruff-format + - repo: https://github.com/pdm-project/pdm + rev: "2.15.1" + hooks: + - id: pdm-lock-check + + - repo: local + hooks: + - id: cargo-check-lock + name: check cargo lock file validity + entry: cargo check + args: ["--locked", "--all-targets", "--all-features"] + language: system + pass_filenames: false + files: ^Cargo\.toml$ + - repo: local hooks: - id: cargo-fmt diff --git a/renovate.json5 b/renovate.json5 index 5236f8b1..0c99c41b 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -53,16 +53,4 @@ customChangelogUrl: "https://github.com/charliermarsh/ruff", }, ], - - // https://docs.renovatebot.com/configuration-options/#custommanagers - customManagers: [ - { - description: "Update Ruff in Cargo.toml", - customType: "regex", - fileMatch: ["^Cargo\\.toml$"], - matchStrings: ['git = "https:\/\/github.com\/astral-sh\/ruff", tag = "v(?.*?)"'], - datasourceTemplate: "pypi", - depNameTemplate: "ruff", - }, - ], }