Skip to content

Commit cd7616f

Browse files
[pre-commit.ci] pre-commit autoupdate (#3102)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9ceec6e commit cd7616f

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ repos:
1919
- id: pyproject-fmt
2020
additional_dependencies: ["tox>=4.8"]
2121
- repo: https://github.com/pre-commit/mirrors-prettier
22-
rev: "v3.0.1"
22+
rev: "v3.0.2"
2323
hooks:
2424
- id: prettier
2525
args: ["--print-width=120", "--prose-wrap=always"]
2626
- repo: https://github.com/asottile/blacken-docs
27-
rev: 1.15.0
27+
rev: 1.16.0
2828
hooks:
2929
- id: blacken-docs
3030
additional_dependencies: [black==23.7]
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.0.284"
32+
rev: "v0.0.285"
3333
hooks:
3434
- id: ruff
3535
args: [--fix, --exit-non-zero-on-fix]

src/tox/pytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _setup_files(dest: Path, base: Path | None, content: dict[str, Any]) -> None
150150
value = f"from __future__ import annotations\n{value}" # noqa: PLW2901
151151
if isinstance(value, dict):
152152
at_path.mkdir(exist_ok=True)
153-
ToxProject._setup_files(at_path, None, value) # noqa: SLF001
153+
ToxProject._setup_files(at_path, None, value)
154154
elif isinstance(value, str):
155155
at_path.write_text(textwrap.dedent(value), encoding="utf-8")
156156
elif value is None:

tests/session/test_env_select.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,15 @@ def test_matches_hyphenated_env(env_name: str, tox_project: ToxProjectCreator) -
184184

185185
@pytest.mark.parametrize(
186186
"env_name",
187-
[f"3.{_MINOR}", f"3.{_MINOR}-cov", "3-cov", "3", f"3.{_MINOR}", f"py3{_MINOR}-cov", f"py3.{_MINOR}-cov"],
187+
[
188+
f"3.{_MINOR}",
189+
f"3.{_MINOR}-cov",
190+
"3-cov",
191+
"3",
192+
f"py3.{_MINOR}",
193+
f"py3{_MINOR}-cov",
194+
f"py3.{_MINOR}-cov",
195+
],
188196
)
189197
def test_matches_combined_env(env_name: str, tox_project: ToxProjectCreator) -> None:
190198
tox_ini = """

0 commit comments

Comments
 (0)