Skip to content

Commit 2657622

Browse files
suristeramotl
andcommitted
format: Apply suggestions from code review
Co-authored-by: Andreas Motl <[email protected]>
1 parent 7e9e3ea commit 2657622

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cratedb_django/schema.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def check_field(model, field_name: str) -> None:
1111
try:
1212
model._meta.get_field(field_name)
1313
except Exception as e:
14-
raise ValueError(f"Column {field_name!r} does not exist in " f"model") from e
14+
raise ValueError(f"Column {field_name!r} does not exist in model") from e
1515

1616

1717
class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
@@ -119,9 +119,7 @@ def table_sql(self, model) -> tuple:
119119
sql[0] += f" CLUSTERED BY ({clustered_by})"
120120

121121
if clustered_by and number_of_shards:
122-
sql[0] += (
123-
f" CLUSTERED BY ({clustered_by}) INTO {number_of_shards} " f"shards"
124-
)
122+
sql[0] += f" CLUSTERED BY ({clustered_by}) INTO {number_of_shards} shards"
125123

126124
if not clustered_by and number_of_shards:
127125
sql[0] += f" CLUSTERED INTO ({number_of_shards})"

0 commit comments

Comments
 (0)