---
fail_fast: false

repos:
  - repo: https://github.com/adrienverge/yamllint
    rev: v1.36.2
    hooks:
      - args:
          - --config-file
          - .yamllint.yaml
        id: yamllint
        exclude: "borgmatic-template.yaml"
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: trailing-whitespace
        exclude: "borgmatic-template.yaml"
      - id: end-of-file-fixer
      - id: fix-byte-order-marker
      - id: mixed-line-ending
      - id: check-added-large-files
        args: [--maxkb=2048]
      - id: check-merge-conflict
      - id: check-executables-have-shebangs
  - repo: https://github.com/Lucas-C/pre-commit-hooks
    rev: v1.5.5
    hooks:
      - id: remove-crlf
      - id: remove-tabs
        exclude: (Makefile|Caddyfile)
      #  - repo: https://github.com/zricethezav/gitleaks
      #    rev: v8.23.3
      #    hooks:
      #      - id: gitleaks
      #  - repo: https://github.com/yuvipanda/pre-commit-hook-ensure-sops
      #    rev: v1.1
      #    hooks:
      #      - id: sops-encryption
      #        # Uncomment to exclude all markdown files from encryption
      #        # exclude: *.\.md
      #        files: .*secrets.*