This page describes the local development workflow for ExParamsSchema.

日本語版

Toolchain

The project pins Erlang, Elixir, and prek in mise.toml. Install the toolchain after cloning:

mise install

Fetch the Mix dependencies separately:

mix deps.get

Keeping these steps separate makes it clear whether a failure is in the toolchain installation or dependency resolution.

Git hooks

prek runs the following checks before a commit containing Elixir files:

  • mix format --check-formatted
  • mix credo --strict
  • mix compile --warnings-as-errors
  • mix dialyzer
  • mix test --cover --warnings-as-errors

Enable the hook once for the local clone:

mise exec -- prek install

Run all configured hooks against every tracked file without creating a commit:

mise exec -- prek run --all-files

Full CI suite

Run the complete CI suite locally before opening a pull request:

mise run ci

In addition to the pre-commit checks, this generates the documentation with mix docs.