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 #2343

Merged
merged 2 commits into from Mar 18, 2022
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
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
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
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/config/test_config.py
Expand Up @@ -3575,7 +3575,7 @@ def test_config_via_pyproject_legacy(initproj):
initproj(
"config_via_pyproject_legacy-0.5",
filedefs={
"pyproject.toml": u'''
"pyproject.toml": '''
[project]
description = "Factory ⸻ A code generator 🏭"
authors = [{name = "Łukasz Langa"}]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_pytest_plugins.py
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