Skip to content

Commit 91bbd7f

Browse files
[pre-commit.ci] pre-commit autoupdate (#2343)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 31dc5b1 commit 91bbd7f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v2.31.0
15+
rev: v2.31.1
1616
hooks:
1717
- id: pyupgrade
1818
- repo: https://github.com/PyCQA/isort
1919
rev: 5.10.1
2020
hooks:
2121
- id: isort
2222
- repo: https://github.com/psf/black
23-
rev: 21.12b0
23+
rev: 22.1.0
2424
hooks:
2525
- id: black
2626
args: [ --safe ]
2727
- repo: https://github.com/asottile/blacken-docs
28-
rev: v1.12.0
28+
rev: v1.12.1
2929
hooks:
3030
- id: blacken-docs
3131
additional_dependencies: [ black==21.12b0 ]

src/tox/helper/get_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"implementation": platform.python_implementation(),
1111
"version_info": list(sys.version_info),
1212
"version": sys.version,
13-
"is_64": sys.maxsize > 2 ** 32,
13+
"is_64": sys.maxsize > 2**32,
1414
"sysplatform": sys.platform,
1515
"os_sep": os.sep,
1616
"extra_version_info": getattr(sys, "pypy_version_info", None),

src/tox/interpreters/py_spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ def from_name(cls, base_python):
7171
"pypy" if tox.constants.INFO.IS_PYPY else "python",
7272
sys.version_info[0],
7373
sys.version_info[1],
74-
64 if sys.maxsize > 2 ** 32 else 32,
74+
64 if sys.maxsize > 2**32 else 32,
7575
sys.executable,
7676
)

tests/unit/test_pytest_plugins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_run_result_repr(capfd):
119119
with RunResult(["hello", "world"], capfd) as run_result:
120120
# simulate tox writing some unicode output
121121
stdout_buffer = getattr(sys.stdout, "buffer", sys.stdout)
122-
stdout_buffer.write(u"\u2603".encode("UTF-8"))
122+
stdout_buffer.write("\u2603".encode("UTF-8"))
123123

124124
# must not `UnicodeError` on repr(...)
125125
ret = repr(run_result)

0 commit comments

Comments
 (0)