# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
exclude: |
  (?x)
  ^doc/conf.py|
  ^esmvalcore/cmor/tables/|
  ^esmvalcore/preprocessor/ne_masks/
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.3.0
    hooks:
      - id: check-added-large-files
      - id: check-ast
      - id: check-case-conflict
      - id: check-merge-conflict
      - id: debug-statements
      - id: end-of-file-fixer
      - id: trailing-whitespace
        args: [--markdown-linebreak-ext=md]
  - repo: https://github.com/adrienverge/yamllint
    rev: 'v1.28.0'
    hooks:
      - id: yamllint
  - repo: https://github.com/codespell-project/codespell
    rev: 'v2.2.2'
    hooks:
      - id: codespell
  - repo: https://github.com/PyCQA/isort
    rev: '5.10.1'
    hooks:
      - id: isort
  - repo: https://github.com/pre-commit/mirrors-yapf
    rev: 'v0.32.0'
    hooks:
      - id: yapf
        additional_dependencies:
          - 'toml'
  - repo: https://github.com/myint/docformatter
    rev: 'v1.5.0'
    hooks:
      - id: docformatter
  - repo: https://github.com/pycqa/flake8
    rev: '5.0.4'
    hooks:
      - id: flake8
  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: 'v0.991'
    hooks:
      - id: mypy
        additional_dependencies:
          - 'types-PyYAML'
          - 'types-pkg_resources'
          - 'types-requests'
