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