Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2343)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Mar 18, 2022
1 parent 31dc5b1 commit 91bbd7f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.31.1
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black
args: [ --safe ]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [ black==21.12b0 ]
Expand Down
2 changes: 1 addition & 1 deletion src/tox/helper/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"implementation": platform.python_implementation(),
"version_info": list(sys.version_info),
"version": sys.version,
"is_64": sys.maxsize > 2 ** 32,
"is_64": sys.maxsize > 2**32,
"sysplatform": sys.platform,
"os_sep": os.sep,
"extra_version_info": getattr(sys, "pypy_version_info", None),
Expand Down
2 changes: 1 addition & 1 deletion src/tox/interpreters/py_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ def from_name(cls, base_python):
"pypy" if tox.constants.INFO.IS_PYPY else "python",
sys.version_info[0],
sys.version_info[1],
64 if sys.maxsize > 2 ** 32 else 32,
64 if sys.maxsize > 2**32 else 32,
sys.executable,
)
2 changes: 1 addition & 1 deletion tests/unit/test_pytest_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_run_result_repr(capfd):
with RunResult(["hello", "world"], capfd) as run_result:
# simulate tox writing some unicode output
stdout_buffer = getattr(sys.stdout, "buffer", sys.stdout)
stdout_buffer.write(u"\u2603".encode("UTF-8"))
stdout_buffer.write("\u2603".encode("UTF-8"))

# must not `UnicodeError` on repr(...)
ret = repr(run_result)
Expand Down

0 comments on commit 91bbd7f

Please sign in to comment.