Skip to content

Commit

Permalink
style: fix code-style problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Aug 3, 2024
1 parent e28c9a0 commit e3ca70a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/liblilex/build/build.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Glyphs builder"""
import asyncio
import os
from shutil import rmtree
Expand Down
3 changes: 2 additions & 1 deletion scripts/liblilex/build/post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ async def _fix_variable(files: list[str]):
for file in files:
fix_tasks.append(_fix_font(file))
await asyncio.gather(*fix_tasks)
config = load(open(STAT_CONFIG, encoding="utf-8"), Loader=SafeLoader)
with open(STAT_CONFIG, "r", encoding="utf-8") as file:
config = load(file, Loader=SafeLoader)
fonts = [TTFont(f) for f in files]
gen_stat_tables_from_config(config, fonts, has_italic=True)
for font in fonts:
Expand Down
1 change: 1 addition & 0 deletions scripts/liblilex/features/tpl.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Feature templates"""
NAME_TPL = {
"ss": (
"featureNames {\n"
Expand Down
4 changes: 2 additions & 2 deletions scripts/porting.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def progress(args):
stored_glyphs = json.load(file)

diff = len(stored_glyphs) - len(missing_glyphs)
progress_value = (diff / len(stored_glyphs))
progress_value = diff / len(stored_glyphs)
if not args.markdown:
for glyph in missing_glyphs:
print(f"- {glyph}")
Expand All @@ -53,7 +53,7 @@ def progress(args):
if suffix is None:
groups[group].append(glyph)
continue
elif suffix in glyph:
if suffix in glyph:
if group not in groups:
groups[group] = []
groups[group].append(glyph)
Expand Down

0 comments on commit e3ca70a

Please sign in to comment.