Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2022
1 parent a2778c5 commit c8eaed0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -25,8 +25,8 @@ def generate_draft_news():
issue = f"{home}/issue"
fragments_path = ROOT_SRC_TREE_DIR / "docs" / "changelog"
for pattern, replacement in (
(r"[^`]@([^,\s]+)", fr"`@\1 <{home}/\1>`_"),
(r"[^`]#([\d]+)", fr"`#pr\1 <{issue}/\1>`_"),
(r"[^`]@([^,\s]+)", rf"`@\1 <{home}/\1>`_"),
(r"[^`]#([\d]+)", rf"`#pr\1 <{issue}/\1>`_"),
):
for path in fragments_path.glob("*.rst"):
path.write_text(re.sub(pattern, replacement, path.read_text()))
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

0 comments on commit c8eaed0

Please sign in to comment.