repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: check-yaml
        name: check-yaml (safe)
        exclude: ^(mkdocs\.yml$|charts/.*/templates/)
      - id: check-yaml
        name: check-yaml (unsafe for mkdocs)
        files: ^mkdocs\.yml$
        args: [ --unsafe ]
      - id: debug-statements
      - id: end-of-file-fixer
        exclude: "CNAME"
  - repo: https://github.com/pycqa/flake8
    rev: 7.0.0
    hooks:
      - id: flake8
        exclude: ".*/migrations"
        args: [ --max-complexity=15 ]
  - repo: https://github.com/psf/black
    rev: 24.4.2
    hooks:
      - id: black
        args: [ --config, pyproject.toml ]
  - repo: https://github.com/shellcheck-py/shellcheck-py
    rev: v0.10.0.1
    hooks:
      - id: shellcheck
        args: [ -x ]
