Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/config/test_config.py
Original file line number Diff line number Diff line change
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
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