Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2046)
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

* remove redundant quotes

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
  • Loading branch information
pre-commit-ci[bot] and jugmac00 committed Apr 30, 2021
1 parent 8279ceb commit a0f0572
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,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:
Expand Down
4 changes: 2 additions & 2 deletions src/tox/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/tox/hookspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/tox/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/tox/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/tox/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit a0f0572

Please sign in to comment.