.pre-commit-config-non-nix.yaml 557 B

123456789101112131415161718
  1. # SPDX-FileCopyrightText: 2024 Christina Sørensen
  2. # SPDX-License-Identifier: EUPL-1.2
  3. repos:
  4. - repo: local
  5. hooks:
  6. - id: rust-linting
  7. name: Rust linting
  8. description: Run rustfmt on included files
  9. entry: cargo fmt --
  10. types: [file, rust]
  11. language: system
  12. - id: rust-clippy
  13. name: Rust clippy
  14. description: Run clippy on included files
  15. pass_filenames: false
  16. entry: cargo clippy --workspace --all-targets --all-features
  17. types: [file, rust]
  18. language: system