# pre-commit check
pre-commit:
  commands:
    fmt:
      glob: "*.rs"
      run: cargo fmt -- --check
    clippy:
      glob: "*.rs"
      run: cargo clippy -- -D warnings
    test:
      glob: "*.rs"
      run: cargo test
    actionlint:
      glob: ".github/workflows/*.yml"
      run: devbox run -- actionlint {staged_files}
