diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98853a4f70..6fa0303682 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: hooks: - id: isort - repo: 'https://github.com/psf/black' - rev: 21.7b0 + rev: 22.1.0 hooks: - id: black - repo: 'https://github.com/pycqa/flake8' diff --git a/tests/functional/test_s3.py b/tests/functional/test_s3.py index fafce722da..43c978a0ec 100644 --- a/tests/functional/test_s3.py +++ b/tests/functional/test_s3.py @@ -214,7 +214,7 @@ def test_object_copy(self): assert response is None def test_copy_progress(self): - chunksize = 8 * (1024 ** 2) + chunksize = 8 * (1024**2) self.stub_multipart_copy(chunksize, 3) transfer_config = TransferConfig( multipart_chunksize=chunksize, @@ -329,7 +329,7 @@ def test_object_upload(self): self.stubber.assert_no_pending_responses() def test_multipart_upload(self): - chunksize = 8 * (1024 ** 2) + chunksize = 8 * (1024**2) contents = six.BytesIO(b'0' * (chunksize * 3)) self.stub_multipart_upload(num_parts=3) transfer_config = TransferConfig( diff --git a/tests/integration/test_s3.py b/tests/integration/test_s3.py index 910100b9da..5393bbc0f8 100644 --- a/tests/integration/test_s3.py +++ b/tests/integration/test_s3.py @@ -350,7 +350,7 @@ def test_upload_fileobj_progress(self): # This has to be an integration test because the fileobj will never # actually be read from when using the stubber and therefore the # progress callbacks will not be invoked. - chunksize = 5 * (1024 ** 2) + chunksize = 5 * (1024**2) config = boto3.s3.transfer.TransferConfig( multipart_chunksize=chunksize, multipart_threshold=chunksize, diff --git a/tests/unit/dynamodb/test_types.py b/tests/unit/dynamodb/test_types.py index c1828a1f3d..0a6c2a07f3 100644 --- a/tests/unit/dynamodb/test_types.py +++ b/tests/unit/dynamodb/test_types.py @@ -198,14 +198,11 @@ def test_deserialize_list(self): ) == [Decimal('1'), 'foo', [Decimal('1.25')]] def test_deserialize_map(self): - assert ( - self.deserializer.deserialize( - { - 'M': { - 'foo': {'S': 'mystring'}, - 'bar': {'M': {'baz': {'N': '1'}}}, - } + assert self.deserializer.deserialize( + { + 'M': { + 'foo': {'S': 'mystring'}, + 'bar': {'M': {'baz': {'N': '1'}}}, } - ) - == {'foo': 'mystring', 'bar': {'baz': Decimal('1')}} - ) + } + ) == {'foo': 'mystring', 'bar': {'baz': Decimal('1')}}