# If you change the versions below, please make sure they are in-sync # with requirements-test.txt exclude: 'build|stubs' default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.5.0 hooks: - id: trailing-whitespace - id: check-ast - id: check-merge-conflict - id: no-commit-to-branch args: ['--branch=main'] - id: check-added-large-files args: ['--maxkb=500'] - id: end-of-file-fixer - repo: https://github.com/ambv/black rev: 19.10b0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 rev: 3.7.9 hooks: - id: flake8 - repo: https://github.com/asottile/seed-isort-config rev: v2.1.0 hooks: - id: seed-isort-config - repo: https://github.com/pycqa/isort rev: 5.6.4 hooks: - id: isort exclude: README.md additional_dependencies: [toml] - repo: https://github.com/pre-commit/mirrors-mypy rev: 'v0.790' hooks: - id: mypy additional_dependencies: [numpy]