mix precommit (Xqlite v0.7.0)
View SourceRuns 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
- Elixir formatting (
mix format --check-formatted) - Rust formatting (
cargo fmt --check) - Elixir compilation with warnings as errors
- Rust clippy with denied warnings
- Rust unit tests (
cargo test) - Dialyzer type checks
- Full Elixir test suite (
mix test.seq)
Usage
mix precommit