repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
    - id: end-of-file-fixer
    - id: trailing-whitespace
    - id: check-json
  - repo: https://github.com/ambv/black
    rev: 22.12.0
    hooks:
      - id: black
        args: ['--line-length', '140']
  - repo: https://github.com/PyCQA/flake8
    rev: 6.0.0
    hooks:
      - id: flake8
        args: ['--max-line-length=140', '--ignore=E203,E402']
  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v0.991
    hooks:
    -   id: mypy
        additional_dependencies: [types-setuptools, types-pytz, types-PyYAML]
