fail_fast: False
stages: [commit]
repos:
  -   repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v3.2.0
      hooks:
        - id: trailing-whitespace
          stages: [commit]
        - id: end-of-file-fixer
          stages: [commit]
        - id: check-yaml
          stages: [commit, manual]
        - id: check-added-large-files
          stages: [commit, manual]
        - id: check-docstring-first
          stages: [commit]
        # you can enable the following checks if you disable them from drone
        # as drone has credentials in place
        # - id: detect-aws-credentials
        # - id: detect-private-key
  -   repo: https://github.com/pre-commit/mirrors-isort
      rev: v5.6.4
      hooks:
        - id: isort
          stages: [commit]
  -   repo: https://github.com/ambv/black
      rev: 20.8b1
      hooks:
        -   id: black
            language_version: python3.7
            stages: [commit]
  -   repo: https://github.com/pre-commit/mirrors-mypy
      rev: v0.790
      hooks:
        -   id: mypy
            args: [--config-file, mypy.ini]
            stages: [commit, manual]
  -   repo: https://gitlab.com/pycqa/flake8
      rev: 3.7.9
      hooks:
        - id: flake8
          stages: [commit]
