From cd7616f504da429e27dea2501e06e87868224e48 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 22 Aug 2023 08:24:55 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#3102) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- src/tox/pytest.py | 2 +- tests/session/test_env_select.py | 10 +++++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe009ad36..dc5d9b0cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,17 +19,17 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.8"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.1" + rev: "v3.0.2" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/asottile/blacken-docs - rev: 1.15.0 + rev: 1.16.0 hooks: - id: blacken-docs additional_dependencies: [black==23.7] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.284" + rev: "v0.0.285" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/tox/pytest.py b/src/tox/pytest.py index 4c968860b..dc909f337 100644 --- a/src/tox/pytest.py +++ b/src/tox/pytest.py @@ -150,7 +150,7 @@ def _setup_files(dest: Path, base: Path | None, content: dict[str, Any]) -> None value = f"from __future__ import annotations\n{value}" # noqa: PLW2901 if isinstance(value, dict): at_path.mkdir(exist_ok=True) - ToxProject._setup_files(at_path, None, value) # noqa: SLF001 + ToxProject._setup_files(at_path, None, value) elif isinstance(value, str): at_path.write_text(textwrap.dedent(value), encoding="utf-8") elif value is None: diff --git a/tests/session/test_env_select.py b/tests/session/test_env_select.py index 2b4f6add6..564806600 100644 --- a/tests/session/test_env_select.py +++ b/tests/session/test_env_select.py @@ -184,7 +184,15 @@ def test_matches_hyphenated_env(env_name: str, tox_project: ToxProjectCreator) - @pytest.mark.parametrize( "env_name", - [f"3.{_MINOR}", f"3.{_MINOR}-cov", "3-cov", "3", f"3.{_MINOR}", f"py3{_MINOR}-cov", f"py3.{_MINOR}-cov"], + [ + f"3.{_MINOR}", + f"3.{_MINOR}-cov", + "3-cov", + "3", + f"py3.{_MINOR}", + f"py3{_MINOR}-cov", + f"py3.{_MINOR}-cov", + ], ) def test_matches_combined_env(env_name: str, tox_project: ToxProjectCreator) -> None: tox_ini = """