summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2021-12-27 11:08:39 +0000
committerGitHub <noreply@github.com>2021-12-27 11:08:39 +0000
commitabc655e428cd9a1070ee6ced2a83afcc3f972aa9 (patch)
treea135358e723539d66011f009c651ecefad4fd744
parentbb82a73b6dbf577874f6d4bfaf72d2a7f59dfffe (diff)
downloadvirtualenv-abc655e428cd9a1070ee6ced2a83afcc3f972aa9.tar.gz
[pre-commit.ci] pre-commit autoupdate (#2242)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-rw-r--r--.pre-commit-config.yaml8
-rw-r--r--src/virtualenv/util/path/_sync.py1
-rw-r--r--tasks/__main__zipapp.py1
3 files changed, 4 insertions, 6 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index afe05e3..d521a5b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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"]
diff --git a/src/virtualenv/util/path/_sync.py b/src/virtualenv/util/path/_sync.py
index c3d4af7..05f19d0 100644
--- a/src/virtualenv/util/path/_sync.py
+++ b/src/virtualenv/util/path/_sync.py
@@ -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
diff --git a/tasks/__main__zipapp.py b/tasks/__main__zipapp.py
index abf90c7..3aa97ca 100644
--- a/tasks/__main__zipapp.py
+++ b/tasks/__main__zipapp.py
@@ -130,7 +130,6 @@ if NEW_IMPORT_SYSTEM:
def module_repr(self, module):
raise NotImplementedError
-
else:
# noinspection PyDeprecation
from imp import new_module