Pre-commit hooks for Rust projects. Forked from {TODO}
Find a file
2024-01-01 12:00:23 +00:00
.envrc Make package a nix flake 2024-01-01 11:56:15 +00:00
.gitignore Make package a nix flake 2024-01-01 11:56:15 +00:00
.pre-commit-config.yaml Use https instead of git protocol 2020-06-20 02:00:53 +02:00
.pre-commit-hooks.yaml Rename clippy to cargo-clippy for consistency 2024-01-01 11:57:42 +00:00
flake.lock Make package a nix flake 2024-01-01 11:56:15 +00:00
flake.nix Make package a nix flake 2024-01-01 11:56:15 +00:00
README.md Update README to include all hooks as example 2024-01-01 12:00:23 +00:00

Rust hooks for pre-commit

Rust tools package for pre-commit.

Using rust tools with pre-commit

-   repo: https://git.xenia.me.uk/utils/pre-commit-rust
    rev: master
    hooks:
    -   id: fmt
    -   id: cargo-check
    -   id: cargo-clippy
    -   id: cargo-test

Passing arguments to rustfmt

-   repo: https://git.xenia.me.uk/utils/pre-commit-rust
    rev: master
    hooks:
    -   id: fmt
        args: ['--verbose', '--edition', '2018', '--']