fail_fast: true
exclude: .*3rdparty/.*

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.1.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: detect-private-key
      - id: mixed-line-ending
        args: ['--fix=crlf']

repos:
  - repo: https://github.com/cheshirekow/cmake-format-precommit
    rev: v0.6.10
    hooks:
      - id: cmake-format
      - id: cmake-lint
        args: ['--linelength=150']

fail_fast: true
exclude: (.*3rdparty/.*|.*vs2015/.*|.*vs2019/.*|.*asset/.*|.*docs/.*|.*gallery/.*)

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.1.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: detect-private-key

  - repo: https://github.com/cheshirekow/cmake-format-precommit
    rev: v0.6.10
    hooks:
      - id: cmake-format
      - id: cmake-lint
        args: ['--linelength=150']

Fix pre-commit config bugs and add exclude directories
Fix pre-commit config bugs and add exclude directories

