use ruff instead of black (#598)

This commit is contained in:
Inada Naoki 2024-05-03 15:17:54 +09:00 committed by GitHub
parent e77672200b
commit 2eca765533
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 40 additions and 73 deletions

View file

@ -95,4 +95,4 @@ def test_multidim_memoryview():
view = memoryview(b"\00" * 6)
data = view.cast(view.format, (3, 2))
packed = packb(data)
assert packed == b'\xc4\x06\x00\x00\x00\x00\x00\x00'
assert packed == b"\xc4\x06\x00\x00\x00\x00\x00\x00"

View file

@ -89,7 +89,7 @@ def testStrictUnicodeUnpack():
def testIgnoreErrorsPack():
re = unpackb(
packb("abc\uDC80\uDCFFdef", use_bin_type=True, unicode_errors="ignore"),
packb("abc\udc80\udcffdef", use_bin_type=True, unicode_errors="ignore"),
raw=False,
use_list=1,
)

View file

@ -1,4 +1,5 @@
"""Test Unpacker's read_array_header and read_map_header methods"""
from msgpack import packb, Unpacker, OutOfData
UnexpectedTypeException = ValueError