Skip to content

Commit 16226e1

Browse files
committed
linter
1 parent 2cb95bc commit 16226e1

File tree

13 files changed

+14
-19
lines changed

13 files changed

+14
-19
lines changed

Examples/runtimes/python/DynamoDBEncryption/src/scan_error_example/encryption_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from aws_cryptographic_material_providers.mpl.config import MaterialProvidersConfig
1414
from aws_cryptographic_material_providers.mpl.errors import CollectionOfErrors
1515
from aws_cryptographic_material_providers.mpl.models import CreateAwsKmsMrkMultiKeyringInput, DBEAlgorithmSuiteId
16-
from aws_dbesdk_dynamodb.encrypted.client import EncryptedClient
1716
from aws_dbesdk_dynamodb.structures.dynamodb import (
1817
DynamoDbTableEncryptionConfig,
1918
DynamoDbTablesEncryptionConfig,
@@ -22,6 +21,7 @@
2221
CryptoAction,
2322
)
2423

24+
2525
def print_exception(e: Exception, indent: str = ""):
2626
"""
2727
Print exception and any nested CollectionOfErrors.
@@ -38,6 +38,7 @@ def print_exception(e: Exception, indent: str = ""):
3838
for err in e.list():
3939
print_exception(err, indent + " ")
4040

41+
4142
def create_encryption_config(kms_key_id: str, ddb_table_name: str) -> DynamoDbTablesEncryptionConfig:
4243
"""
4344
Create the encryption configuration for DynamoDB encryption using raw AES keyring.

Examples/runtimes/python/DynamoDBEncryption/src/scan_error_example/with_encrypted_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
"""
1616
import boto3
1717
from aws_dbesdk_dynamodb.encrypted.client import EncryptedClient
18+
1819
from .encryption_config import create_encryption_config, print_exception
1920

21+
2022
def scan_error_with_client(kms_key_id: str, ddb_table_name: str):
2123
"""
2224
Demonstrate handling scan errors with EncryptedClient.

Examples/runtimes/python/DynamoDBEncryption/src/scan_error_example/with_encrypted_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
"""
1616
import boto3
1717
from aws_dbesdk_dynamodb.encrypted.table import EncryptedTable
18+
1819
from .encryption_config import create_encryption_config, print_exception
1920

21+
2022
def scan_error_with_table(kms_key_id: str, ddb_table_name: str):
2123
"""
2224
Demonstrate handling scan errors with EncryptedClient.

Examples/runtimes/python/DynamoDBEncryption/src/searchable_encryption/compound_beacon_searchable_encryption_example/with_encrypted_table.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@
3939

4040
import boto3
4141
from aws_dbesdk_dynamodb.encrypted.table import EncryptedTable
42-
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_transforms.client import (
43-
DynamoDbEncryptionTransforms,
44-
)
45-
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_transforms.models import (
46-
ResolveAttributesInput,
47-
)
4842

4943
from DynamoDBEncryption.src.searchable_encryption.compound_beacon_searchable_encryption_example.beacon_config import (
5044
GSI_NAME,

Examples/runtimes/python/DynamoDBEncryption/src/searchable_encryption/virtual_beacon_searchable_encryption_example/with_encrypted_table.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@
9898

9999
import boto3
100100
from aws_dbesdk_dynamodb.encrypted.table import EncryptedTable
101-
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_transforms.client import (
102-
DynamoDbEncryptionTransforms,
103-
)
104-
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_transforms.models import (
105-
ResolveAttributesInput,
106-
)
107101

108102
from DynamoDBEncryption.src.searchable_encryption.virtual_beacon_searchable_encryption_example.beacon_config import (
109103
setup_beacon_config,

Examples/runtimes/python/DynamoDBEncryption/test/scan_error_example/test_with_encrypted_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
"""Test scan error example."""
44
import pytest
5+
56
from ...src.scan_error_example.with_encrypted_client import scan_error_with_client
67
from ..test_utils import TEST_DDB_TABLE_NAME, TEST_KMS_KEY_ID
78

Examples/runtimes/python/DynamoDBEncryption/test/scan_error_example/test_with_encrypted_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
"""Test scan error example."""
44
import pytest
5+
56
from ...src.scan_error_example.with_encrypted_table import scan_error_with_table
67
from ..test_utils import TEST_DDB_TABLE_NAME, TEST_KMS_KEY_ID
78

Examples/runtimes/python/DynamoDBEncryption/test/searchable_encryption/basic_searchable_encryption_example/test_with_with_encrypted_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from ....src.create_keystore_key_example import keystore_create_key
99
from ....src.searchable_encryption.basic_searchable_encryption_example.with_encrypted_client import (
10-
basic_searchable_encryption_client_example
10+
basic_searchable_encryption_client_example,
1111
)
1212
from ...cleanup import delete_branch_key
1313
from ..searchable_encryption_test_utils import (

Examples/runtimes/python/DynamoDBEncryption/test/searchable_encryption/basic_searchable_encryption_example/test_with_with_encrypted_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from ....src.create_keystore_key_example import keystore_create_key
99
from ....src.searchable_encryption.basic_searchable_encryption_example.with_encrypted_table import (
10-
basic_searchable_encryption_table_example
10+
basic_searchable_encryption_table_example,
1111
)
1212
from ...cleanup import delete_branch_key
1313
from ..searchable_encryption_test_utils import (

Examples/runtimes/python/DynamoDBEncryption/test/searchable_encryption/compound_beacon_searchable_encryption_example/test_with_with_encrypted_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from ....src.create_keystore_key_example import keystore_create_key
99
from ....src.searchable_encryption.compound_beacon_searchable_encryption_example.with_encrypted_client import (
10-
compound_beacon_client_example
10+
compound_beacon_client_example,
1111
)
1212
from ...cleanup import delete_branch_key
1313
from ..searchable_encryption_test_utils import (

0 commit comments

Comments
 (0)