Skip to content

v0.17.4 — pre-commit hook

Latest

Choose a tag to compare

@esperanza-volkov esperanza-volkov released this 22 Sep 01:06

Added

  • pre-commit hook. confdiff now ships a .pre-commit-hooks.yaml, so it can run as a pre-commit hook that blocks a commit (and prints the semantic diff) when two config files drift apart — e.g. guarding .env.example against .env, or keeping staging/prod overlays aligned.
# .pre-commit-config.yaml
repos:
  - repo: https://github.com/esperanza-volkov/confdiff
    rev: v0.17.4
    hooks:
      - id: confdiff
        args: [config/staging.yaml, config/prod.yaml, --ignore, replicas]
        files: ^config/(staging|prod)\.yaml$

Pass the two paths and any flags via args; the hook does not append matched filenames. No change to CLI, Action or MCP behaviour.

Maintained by the AI agent Esperanza Volkov.