diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1454416d9..45bd404eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,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 @@ -22,7 +22,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.4b0 hooks: - id: black args: diff --git a/src/tox/config/__init__.py b/src/tox/config/__init__.py index 6d45c9874..63adb2bbd 100644 --- a/src/tox/config/__init__.py +++ b/src/tox/config/__init__.py @@ -1076,7 +1076,7 @@ def envpython(self): return self.get_envpython() def get_envpython(self): - """ path to python/jython executable. """ + """path to python/jython executable.""" if "jython" in str(self.basepython): name = "jython" else: @@ -1552,7 +1552,7 @@ def expand_section_names(config): def _split_env(env): - """if handed a list, action="append" was used for -e """ + """if handed a list, action="append" was used for -e""" if env is None: return [] if not isinstance(env, list): diff --git a/src/tox/hookspecs.py b/src/tox/hookspecs.py index 90374cfb5..5ea9c07e5 100644 --- a/src/tox/hookspecs.py +++ b/src/tox/hookspecs.py @@ -6,7 +6,7 @@ @hookspec def tox_addoption(parser): - """ add command line options to the argparse-style parser object.""" + """add command line options to the argparse-style parser object.""" @hookspec diff --git a/src/tox/package/__init__.py b/src/tox/package/__init__.py index f6925162a..9a32f3f99 100644 --- a/src/tox/package/__init__.py +++ b/src/tox/package/__init__.py @@ -18,7 +18,7 @@ def tox_package(session, venv): def get_package(session): - """"Perform the package operation""" + """Perform the package operation""" config = session.config if config.skipsdist: info("skipping sdist step") diff --git a/src/tox/reporter.py b/src/tox/reporter.py index d954ab2c0..17a3c921c 100644 --- a/src/tox/reporter.py +++ b/src/tox/reporter.py @@ -42,7 +42,7 @@ def verbosity(self): return self.verbose_level - self.quiet_level def log_popen(self, cwd, outpath, cmd_args_shell, pid): - """ log information about the action.popen() created process. """ + """log information about the action.popen() created process.""" msg = "[{}] {}$ {}".format(pid, cwd, cmd_args_shell) if outpath: if outpath.common(cwd) is not None: diff --git a/src/tox/venv.py b/src/tox/venv.py index 5390e9764..e295e5f21 100644 --- a/src/tox/venv.py +++ b/src/tox/venv.py @@ -154,7 +154,7 @@ def hook(self): @property def path(self): - """ Path to environment base dir. """ + """Path to environment base dir.""" return self.envconfig.envdir @property @@ -163,7 +163,7 @@ def path_config(self): @property def name(self): - """ test environment name. """ + """test environment name.""" return self.envconfig.envname def __repr__(self):