Skip to content

Commit ed157cf

Browse files
committed
fix: code formatting
1 parent 70574e8 commit ed157cf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/scripts/validate_format.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def validate_branch_name(branch_name: str, allowed_tags: List[str]) -> Tuple[boo
6868
REQUIRED FORMAT: <type>/<description>
6969
7070
Where <type> must be one of the allowed semantic release tags:
71-
{', '.join(sorted(allowed_tags))}
71+
{", ".join(sorted(allowed_tags))}
7272
7373
EXAMPLES:
7474
✅ feat/user-authentication
@@ -94,7 +94,7 @@ def validate_branch_name(branch_name: str, allowed_tags: List[str]) -> Tuple[boo
9494
REQUIRED FORMAT: <type>/<description>
9595
9696
Where <type> must be one of the allowed semantic release tags:
97-
{', '.join(sorted(allowed_tags))}
97+
{", ".join(sorted(allowed_tags))}
9898
9999
EXAMPLES:
100100
✅ feat/user-authentication
@@ -242,7 +242,7 @@ def validate_commit_message(commit_message: str, allowed_tags: List[str]) -> Tup
242242
REQUIRED FORMAT: <type>: <description> or <type>(<scope>): <description>
243243
244244
Where <type> must be one of the allowed semantic release tags:
245-
{', '.join(sorted(allowed_tags))}
245+
{", ".join(sorted(allowed_tags))}
246246
247247
EXAMPLES:
248248
✅ feat: add user authentication
@@ -269,7 +269,7 @@ def validate_commit_message(commit_message: str, allowed_tags: List[str]) -> Tup
269269
REQUIRED FORMAT: <type>: <description> or <type>(<scope>): <description>
270270
271271
Where <type> must be one of the allowed semantic release tags:
272-
{', '.join(sorted(allowed_tags))}
272+
{", ".join(sorted(allowed_tags))}
273273
274274
EXAMPLES:
275275
✅ feat: add user authentication

backend/osmosmjerka/database/private_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ async def add_phrase_to_private_list(
482482
current_count = await self.get_private_list_phrase_count(list_id)
483483

484484
if current_count >= phrase_limit:
485-
raise ValueError(f"List is full ({phrase_limit} phrases). " f"Current count: {current_count}")
485+
raise ValueError(f"List is full ({phrase_limit} phrases). Current count: {current_count}")
486486

487487
# Get the list to retrieve language_set_id
488488
list_query = select(user_private_lists_table.c.language_set_id).where(user_private_lists_table.c.id == list_id)

backend/tests/test_grid_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ def test_high_density_placement():
278278

279279
# Grid shouldn't be too large for the given phrases
280280
max_phrase_len = max(len(normalize_phrase(w["phrase"].replace(" ", "").upper())) for w in phrases)
281-
assert (
282-
len(grid) <= max_phrase_len + 6
283-
), f"Grid too large: {len(grid)}x{len(grid)} for max phrase length {max_phrase_len}"
281+
assert len(grid) <= max_phrase_len + 6, (
282+
f"Grid too large: {len(grid)}x{len(grid)} for max phrase length {max_phrase_len}"
283+
)
284284

285285

286286
def test_ten_phrases_in_reasonable_grid():

0 commit comments

Comments
 (0)