Skip to content

Commit

Permalink
chore(pre-commit): check lock files (#697)
Browse files Browse the repository at this point in the history
* chore(pre-commit): check Cargo/PDM lock files

* chore(renovate): remove Ruff Renovate hint

* Update .pre-commit-config.yaml
  • Loading branch information
mkniewallner committed May 1, 2024
1 parent c55111b commit e4d74bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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(?<currentValue>.*?)"'],
datasourceTemplate: "pypi",
depNameTemplate: "ruff",
},
],
}

0 comments on commit e4d74bd

Please sign in to comment.