pre-commit:
  jobs:
    - name: test
      run: cargo test --locked --all-features --workspace --lib --tests --examples

    - name: clippy
      # run: cargo clippy --all-targets --all-features --workspace -- -D warnings
      run: cargo clippy --all-targets --all-features --workspace --fix --allow-dirty
      stage_fixed: true

    - name: rustfmt
      run: cargo fmt --all
      stage_fixed: true

    - name: docs
      run: cargo doc --no-deps --document-private-items --all-features --workspace --examples
