From fe0631a8b51f1e5e43427fe86819459dc1b05735 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Sat, 18 Jan 2025 15:42:29 +0100 Subject: [PATCH] Bump `pre-commit` hooks. --- .pre-commit-config.yaml | 4 ++-- tests/dicts/io/test_io_dict_cli.py | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd8f40e..e7cc322 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,13 +3,13 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.18.0 + rev: v3.19.1 hooks: - id: pyupgrade args: ["--py310-plus"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.9.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/tests/dicts/io/test_io_dict_cli.py b/tests/dicts/io/test_io_dict_cli.py index 4192b3f..3ca9ee1 100644 --- a/tests/dicts/io/test_io_dict_cli.py +++ b/tests/dicts/io/test_io_dict_cli.py @@ -40,12 +40,15 @@ def test_from_cli_with_invalid_arguments(self): IODict(s, format="cli") def test_from_cli_with_invalid_data(self): - with patch( - "sys.stdout", - new_callable=StringIO, - ), patch( - "sys.stderr", - new_callable=StringIO, + with ( + patch( + "sys.stdout", + new_callable=StringIO, + ), + patch( + "sys.stderr", + new_callable=StringIO, + ), ): s = "Lorem ipsum est in ea occaecat nisi officia." # static method