Skip to content

Use a pre-commit hook for Cargo that doesn't need Cargo installed - #200

Merged
andrewaylett merged 1 commit into
mainfrom
push-osutmuqsontx
Aug 23, 2025
Merged

Use a pre-commit hook for Cargo that doesn't need Cargo installed#200
andrewaylett merged 1 commit into
mainfrom
push-osutmuqsontx

Conversation

@andrewaylett

Copy link
Copy Markdown
Owner

This uses Docker under the hood. I'm not sure how well my pre-commit caching will work with it.

This uses Docker under the hood.  I'm not sure how well my pre-commit
caching will work with it.

Signed-off-by: Andrew Aylett <andrew@aylett.co.uk>
Copilot AI review requested due to automatic review settings August 23, 2025 12:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates from a Rust pre-commit hook that requires Cargo to be installed to a Docker-based alternative that doesn't require local Rust/Cargo installation. This change aims to simplify the development environment setup by removing the dependency on having Rust toolchain installed locally.

  • Replaces the doublify/pre-commit-rust hooks with Docker-based alternatives from andrewaylett/pre-commit-hooks
  • Updates the pre-commit configuration to use cargo-fmt and cargo-clippy instead of fmt and clippy
  • Removes Rust toolchain setup from GitHub Actions workflow since pre-commit now handles Rust tooling via Docker

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.pre-commit-config.yaml Removes doublify/pre-commit-rust hooks, adds Docker-based cargo-fmt and cargo-clippy hooks, updates hook repository version
.github/workflows/rust.yml Removes Rust toolchain setup step since Docker-based pre-commit hooks no longer require local Rust installation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@andrewaylett
andrewaylett merged commit 3de37b3 into main Aug 23, 2025
10 checks passed
@andrewaylett
andrewaylett deleted the push-osutmuqsontx branch August 23, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants