diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fea4130..cd502fca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: hooks: - id: autopep8 - repo: https://github.com/asottile/reorder_python_imports - rev: v2.7.1 + rev: v3.0.1 hooks: - id: reorder-python-imports args: [--py36-plus] @@ -23,7 +23,7 @@ repos: - id: reorder-python-imports files: install-local.py - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v2.31.1 hooks: - id: pyupgrade args: [--py36-plus] @@ -35,12 +35,12 @@ repos: hooks: - id: add-trailing-comma - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v0.940 hooks: - id: mypy additional_dependencies: [types-all] - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.10.0 + rev: v8.11.0 hooks: - id: eslint args: [--fix] diff --git a/install-local.py b/install-local.py index 054956d1..e46e9816 100644 --- a/install-local.py +++ b/install-local.py @@ -4,7 +4,6 @@ from __future__ import unicode_literals import contextlib -import distutils.spawn import hashlib import io import os.path @@ -13,6 +12,8 @@ import sys import tarfile +import distutils.spawn + if str is bytes: from urllib import urlopen # type: ignore