Skip to content

Commit 61d0e05

Browse files
committed
chore: run linter
1 parent 94ce254 commit 61d0e05

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pyiceberg/catalog/s3tables.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def _validate_namespace_identifier(self, namespace: Union[str, Identifier]) -> s
117117
namespace = self.identifier_to_database(namespace)
118118

119119
if not S3TABLES_VALID_NAME_REGEX.fullmatch(namespace) or namespace == S3TABLES_RESERVED_NAMESPACE:
120-
raise InvalidNamespaceName("The specified namespace name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules.")
120+
raise InvalidNamespaceName(
121+
"The specified namespace name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules."
122+
)
121123

122124
return namespace
123125

@@ -127,7 +129,9 @@ def _validate_database_and_table_identifier(self, identifier: Union[str, Identif
127129
namespace = self._validate_namespace_identifier(namespace)
128130

129131
if not S3TABLES_VALID_NAME_REGEX.fullmatch(table_name):
130-
raise InvalidTableName("The specified table name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules.")
132+
raise InvalidTableName(
133+
"The specified table name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules."
134+
)
131135

132136
return namespace, table_name
133137

@@ -161,7 +165,9 @@ def create_table(
161165
) from e
162166

163167
try:
164-
response = self.s3tables.get_table_metadata_location(tableBucketARN=self.table_bucket_arn, namespace=namespace, name=table_name)
168+
response = self.s3tables.get_table_metadata_location(
169+
tableBucketARN=self.table_bucket_arn, namespace=namespace, name=table_name
170+
)
165171
warehouse_location = response["warehouseLocation"]
166172

167173
metadata_location = self._get_metadata_location(location=warehouse_location)

0 commit comments

Comments
 (0)