From 45b44c20a3b7849c97ca17ec86b3b49ead2314dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Apr 2021 10:03:43 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#2098) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.12.0 → v2.13.0](https://github.com/asottile/pyupgrade/compare/v2.12.0...v2.13.0) - [github.com/psf/black: 20.8b1 → 21.4b0](https://github.com/psf/black/compare/20.8b1...21.4b0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/virtualenv/app_data/na.py | 8 ++++---- src/virtualenv/app_data/via_disk_folder.py | 2 +- src/virtualenv/config/convert.py | 2 +- .../create/via_global_ref/builtin/cpython/cpython3.py | 4 ++-- .../create/via_global_ref/builtin/pypy/pypy2.py | 2 +- src/virtualenv/discovery/builtin.py | 2 +- src/virtualenv/discovery/windows/__init__.py | 2 +- src/virtualenv/run/plugin/discovery.py | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e3cbd31b..982dc2d43 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v2.12.0 + rev: v2.13.0 hooks: - id: pyupgrade - repo: https://github.com/PyCQA/isort @@ -20,7 +20,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.4b0 hooks: - id: black args: [--safe] diff --git a/src/virtualenv/app_data/na.py b/src/virtualenv/app_data/na.py index 5f7200d3a..d5897871f 100644 --- a/src/virtualenv/app_data/na.py +++ b/src/virtualenv/app_data/na.py @@ -44,7 +44,7 @@ def wheel_image(self, for_py_version, name): raise self.error def py_info_clear(self): - """""" + """ """ class ContentStoreNA(ContentStore): @@ -52,14 +52,14 @@ def exists(self): return False def read(self): - """""" + """ """ return None def write(self, content): - """""" + """ """ def remove(self): - """""" + """ """ @contextmanager def locked(self): diff --git a/src/virtualenv/app_data/via_disk_folder.py b/src/virtualenv/app_data/via_disk_folder.py index 2243f1670..257a85fd5 100644 --- a/src/virtualenv/app_data/via_disk_folder.py +++ b/src/virtualenv/app_data/via_disk_folder.py @@ -91,7 +91,7 @@ def py_info(self, path): return PyInfoStoreDisk(self.py_info_at, path) def py_info_clear(self): - """""" + """ """ py_info_folder = self.py_info_at with py_info_folder: for filename in py_info_folder.path.iterdir(): diff --git a/src/virtualenv/config/convert.py b/src/virtualenv/config/convert.py index 562720a57..df408663d 100644 --- a/src/virtualenv/config/convert.py +++ b/src/virtualenv/config/convert.py @@ -43,7 +43,7 @@ def convert(self, value): class ListType(TypeData): def _validate(self): - """""" + """ """ def convert(self, value, flatten=True): values = self.split_values(value) diff --git a/src/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py b/src/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py index ad73eed83..fcd92b82f 100644 --- a/src/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py +++ b/src/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py @@ -15,7 +15,7 @@ @add_metaclass(abc.ABCMeta) class CPython3(CPython, Python3Supports): - """""" + """ """ class CPython3Posix(CPythonPosix, CPython3): @@ -43,7 +43,7 @@ def pyvenv_launch_patch_active(cls, interpreter): class CPython3Windows(CPythonWindows, CPython3): - """""" + """ """ @classmethod def setup_meta(cls, interpreter): diff --git a/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py b/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py index 020000b34..69e0209ec 100644 --- a/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py +++ b/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py @@ -16,7 +16,7 @@ @add_metaclass(abc.ABCMeta) class PyPy2(PyPy, Python2): - """""" + """ """ @classmethod def exe_stem(cls): diff --git a/src/virtualenv/discovery/builtin.py b/src/virtualenv/discovery/builtin.py index 41b43902b..52f7398cf 100644 --- a/src/virtualenv/discovery/builtin.py +++ b/src/virtualenv/discovery/builtin.py @@ -183,4 +183,4 @@ def possible_specs(spec): class PathPythonInfo(PythonInfo): - """""" + """ """ diff --git a/src/virtualenv/discovery/windows/__init__.py b/src/virtualenv/discovery/windows/__init__.py index a9d06dabb..259be976b 100644 --- a/src/virtualenv/discovery/windows/__init__.py +++ b/src/virtualenv/discovery/windows/__init__.py @@ -6,7 +6,7 @@ class Pep514PythonInfo(PythonInfo): - """""" + """ """ def propose_interpreters(spec, cache_dir, env): diff --git a/src/virtualenv/run/plugin/discovery.py b/src/virtualenv/run/plugin/discovery.py index 7cfee7c86..ac9b7f526 100644 --- a/src/virtualenv/run/plugin/discovery.py +++ b/src/virtualenv/run/plugin/discovery.py @@ -4,7 +4,7 @@ class Discovery(PluginLoader): - """""" + """ """ def get_discover(parser, args):