repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.1.0
    hooks:
    # Identify invalid files
    - id: check-ast
    - id: check-yaml
    - id: check-json
    - id: check-toml
    # git checks
    - id: check-merge-conflict
    - id: check-added-large-files
      exclude: ^test/data/.+
    - id: detect-private-key
    - id: check-case-conflict
    # Python checks
    - id: check-docstring-first
    - id: debug-statements
    - id: requirements-txt-fixer
    - id: fix-encoding-pragma
    - id: fix-byte-order-marker
    # General quality checks
    - id: mixed-line-ending
      args: [--fix=lf]
      exclude: ^test/resources/
    - id: trailing-whitespace
      args: [--markdown-linebreak-ext=md]
      exclude: ^test/resources/
    - id: check-executables-have-shebangs
    - id: end-of-file-fixer
      exclude: ^test/data/.+
-   repo: https://github.com/ambv/black
    rev: 22.3.0
    hooks:
    - id: black
      args: [--config=.black.toml]
-   repo: https://gitlab.com/pycqa/flake8
    rev: 3.9.2
    hooks:
    - id: flake8
-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: 'v0.931'
    hooks:
    - id: mypy
