Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #2046

Merged
merged 3 commits into from
Apr 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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