diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 329103e7d02..7197c0b308c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - - repo: https://github.com/MarcoGorelli/absolufy-imports - rev: v0.3.1 - hooks: + - repo: https://github.com/MarcoGorelli/absolufy-imports + rev: v0.3.1 + hooks: - id: absolufy-imports name: absolufy-imports - - repo: https://github.com/pycqa/isort - rev: 5.10.1 - hooks: + - repo: https://github.com/pycqa/isort + rev: 5.10.1 + hooks: - id: isort language_version: python3 - repo: https://github.com/asottile/pyupgrade @@ -17,23 +17,28 @@ repos: - id: pyupgrade args: - --py38-plus - - repo: https://github.com/psf/black - rev: 22.1.0 - hooks: + - repo: https://github.com/psf/black + rev: 22.3.0 + hooks: - id: black language_version: python3 exclude: versioneer.py args: - --target-version=py38 - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 - hooks: + - repo: https://gitlab.com/pycqa/flake8 + rev: 4.0.1 + hooks: - id: flake8 language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v0.942 hooks: - id: mypy + args: + - --ignore-missing-imports + # Silence errors about Python 3.9-style delayed type annotations on Python 3.8 + - --python-version + - "3.9" additional_dependencies: # Type stubs - types-docutils