Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#430)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 20, 2024
1 parent 602e2b9 commit d062ae9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: check-docstring-first

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.5.0
hooks:
- id: ruff
- id: ruff-format
2 changes: 1 addition & 1 deletion tests/events/test_event_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def post_foo(self, e: Event, *_: Any) -> None:


def test_initial_state(dispatcher: EventDispatcher) -> None:
assert {} == dispatcher.get_listeners()
assert dispatcher.get_listeners() == {}
assert not dispatcher.has_listeners(PRE_FOO)
assert not dispatcher.has_listeners(POST_FOO)

Expand Down
2 changes: 1 addition & 1 deletion tests/io/inputs/test_argv_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_it_uses_argv_by_default(argv: Iterator[None]) -> None:

i = ArgvInput()

assert ["foo"] == i._tokens
assert i._tokens == ["foo"]


def test_parse_arguments() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/io/inputs/test_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_list() -> None:
assert opt.accepts_value()
assert opt.requires_value()
assert opt.is_list()
assert [] == opt.default
assert opt.default == []


def test_multi_valued_with_default() -> None:
Expand All @@ -120,4 +120,4 @@ def test_multi_valued_with_default() -> None:
assert opt.accepts_value()
assert opt.requires_value()
assert opt.is_list()
assert ["foo", "bar"] == opt.default
assert opt.default == ["foo", "bar"]
4 changes: 2 additions & 2 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def test_argument() -> None:

assert arg.is_required()
assert arg.is_list()
assert [] == arg.default
assert arg.default == []

arg = argument("foo", "Foo", optional=True, multiple=True, default=["bar"])

assert not arg.is_required()
assert arg.is_list()
assert ["bar"] == arg.default
assert arg.default == ["bar"]


def test_option() -> None:
Expand Down

0 comments on commit d062ae9

Please sign in to comment.