mix precommit (Xqlite v0.7.0)

View Source

Runs all checks that CI will enforce, in fast-to-slow order.

Stops on the first failure. Designed to be run before every commit to avoid pushing code that will fail CI.

Steps

  1. Elixir formatting (mix format --check-formatted)
  2. Rust formatting (cargo fmt --check)
  3. Elixir compilation with warnings as errors
  4. Rust clippy with denied warnings
  5. Rust unit tests (cargo test)
  6. Dialyzer type checks
  7. Full Elixir test suite (mix test.seq)

Usage

mix precommit

Summary

Functions

check_dialyzer()

check_elixir_compile()

check_elixir_format()

check_rust_clippy()

check_rust_format()

check_rust_tests()

check_tests()

run(args)

Callback implementation for Mix.Task.run/1.