diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b46fd3..90bd181 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,6 +37,13 @@ repos: pass_filenames: false types: [file, rust] language: system + - id: cargo-lock-check + name: Cargo.lock sync check + description: Ensure Cargo.lock is up-to-date. + entry: cargo fetch --quiet -- + pass_filenames: false + files: 'Cargo\.(toml|lock)$' + language: system - id: cspell name: Code spell checker (cspell) description: Run cspell to check for spelling errors (if available).