repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-toml - id: check-added-large-files - id: check-merge-conflict - repo: https://github.com/crate-ci/typos rev: v1.21.0 hooks: - id: typos args: ["--force-exclude"] - repo: local hooks: - id: fmt name: fmt description: Format files with cargo fmt. entry: cargo fmt language: system types: [rust] args: ["--", "--check"] - id: clippy name: clippy description: Lint rust sources entry: cargo clippy language: system args: ["--", "-D", "warnings"] types: [rust] pass_filenames: false - id: test name: test description: Rust test entry: cargo test language: system args: ["--workspace"] types: [rust] pass_filenames: false - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks rev: v0.1.0 hooks: - id: dockerfilelint