Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#242)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.10...v0.5.0)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](pre-commit/mirrors-mypy@v1.10.0...v1.10.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

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 5, 2024
1 parent 9066c52 commit 538582f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,14 +831,14 @@ def test_load_from_file(impl, tmpdir):

def test_nested_dict(impl):
value = impl.loads(unhexlify("A1D9177082010201"))
assert type(value) is dict # noqa: E721
assert type(value) is dict
assert value == {impl.CBORTag(6000, (1, 2)): 1}


def test_set(impl):
payload = unhexlify("d9010283616361626161")
value = impl.loads(payload)
assert type(value) is set # noqa: E721
assert type(value) is set
assert value == {"a", "b", "c"}


Expand Down

0 comments on commit 538582f

Please sign in to comment.