Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2098)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.12.0 → v2.13.0](asottile/pyupgrade@v2.12.0...v2.13.0)
- [github.com/psf/black: 20.8b1 → 21.4b0](psf/black@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>
  • Loading branch information
pre-commit-ci[bot] authored Apr 27, 2021
1 parent a76cc5a commit 45b44c2
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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
rev: 5.8.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.4b0
hooks:
- id: black
args: [--safe]
Expand Down
8 changes: 4 additions & 4 deletions src/virtualenv/app_data/na.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ def wheel_image(self, for_py_version, name):
raise self.error

def py_info_clear(self):
""""""
""" """


class ContentStoreNA(ContentStore):
def exists(self):
return False

def read(self):
""""""
""" """
return None

def write(self, content):
""""""
""" """

def remove(self):
""""""
""" """

@contextmanager
def locked(self):
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/app_data/via_disk_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/config/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@add_metaclass(abc.ABCMeta)
class CPython3(CPython, Python3Supports):
""""""
""" """


class CPython3Posix(CPythonPosix, CPython3):
Expand Down Expand Up @@ -43,7 +43,7 @@ def pyvenv_launch_patch_active(cls, interpreter):


class CPython3Windows(CPythonWindows, CPython3):
""""""
""" """

@classmethod
def setup_meta(cls, interpreter):
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@add_metaclass(abc.ABCMeta)
class PyPy2(PyPy, Python2):
""""""
""" """

@classmethod
def exe_stem(cls):
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/discovery/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ def possible_specs(spec):


class PathPythonInfo(PythonInfo):
""""""
""" """
2 changes: 1 addition & 1 deletion src/virtualenv/discovery/windows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class Pep514PythonInfo(PythonInfo):
""""""
""" """


def propose_interpreters(spec, cache_dir, env):
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/run/plugin/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class Discovery(PluginLoader):
""""""
""" """


def get_discover(parser, args):
Expand Down

0 comments on commit 45b44c2

Please sign in to comment.