Skip to content

Commit c8eaed0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a2778c5 commit c8eaed0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def generate_draft_news():
2525
issue = f"{home}/issue"
2626
fragments_path = ROOT_SRC_TREE_DIR / "docs" / "changelog"
2727
for pattern, replacement in (
28-
(r"[^`]@([^,\s]+)", fr"`@\1 <{home}/\1>`_"),
29-
(r"[^`]#([\d]+)", fr"`#pr\1 <{issue}/\1>`_"),
28+
(r"[^`]@([^,\s]+)", rf"`@\1 <{home}/\1>`_"),
29+
(r"[^`]#([\d]+)", rf"`#pr\1 <{issue}/\1>`_"),
3030
):
3131
for path in fragments_path.glob("*.rst"):
3232
path.write_text(re.sub(pattern, replacement, path.read_text()))

src/tox/helper/get_version.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/config/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3575,7 +3575,7 @@ def test_config_via_pyproject_legacy(initproj):
35753575
initproj(
35763576
"config_via_pyproject_legacy-0.5",
35773577
filedefs={
3578-
"pyproject.toml": u'''
3578+
"pyproject.toml": '''
35793579
[project]
35803580
description = "Factory ⸻ A code generator 🏭"
35813581
authors = [{name = "Łukasz Langa"}]

tests/unit/test_pytest_plugins.py

Lines changed: 1 addition & 1 deletion
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)