Skip to content

Commit

Permalink
Bump pre-commit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Jan 18, 2025
1 parent db8ccd8 commit fe0631a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
15 changes: 9 additions & 6 deletions tests/dicts/io/test_io_dict_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe0631a

Please sign in to comment.