[pre-commit.ci] pre-commit autoupdate (#2242)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot] 2021-12-27 11:08:39 +00:00 committed by GitHub
parent bb82a73b6d
commit abc655e428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View file

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.1.0
hooks:
- id: check-ast
- id: check-builtin-literals
@ -20,7 +20,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.11b1
rev: 21.12b0
hooks:
- id: black
args: [--safe]
@ -28,7 +28,7 @@ repos:
rev: v1.12.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.9b0]
additional_dependencies: [black==21.12b0]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
@ -47,4 +47,4 @@ repos:
rev: "4.0.1"
hooks:
- id: flake8
additional_dependencies: ["flake8-bugbear == 21.9.2"]
additional_dependencies: ["flake8-bugbear == 21.11.29"]

View file

@ -15,7 +15,6 @@ if PY2 and IS_CPYTHON and IS_WIN: # CPython2 on Windows supports unicode paths
def norm(src):
return ensure_text(str(src))
else:
norm = str

View file

@ -130,7 +130,6 @@ if NEW_IMPORT_SYSTEM:
def module_repr(self, module):
raise NotImplementedError
else:
# noinspection PyDeprecation
from imp import new_module