Skip to content

Commit

Permalink
fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Jun 23, 2022
1 parent 77e8e4f commit cc28cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Lib/fontbakery/profiles/googlefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,6 @@ def font_codepoints(ttFont):
)
def com_google_fonts_check_glyph_coverage(ttFont, font_codepoints, config):
"""Check Google Fonts glyph coverage."""
from fontbakery.utils import bullet_list
from glyphsets import GFGlyphData as glyph_data
import unicodedata2

Expand Down Expand Up @@ -3837,7 +3836,7 @@ def get_instances(ttFont):
elif any(font_instances[i] != expected_instances[i] for i in same):
yield WARN, Message("suspicious-fvar-coords",
(f"fvar instance coordinates for non-wght axes are not the same as the fvar defaults. "
"This may be intentional so please check with the font author:\n\n{md_table}"))
f"This may be intentional so please check with the font author:\n\n{md_table}"))
else:
yield PASS, f"fvar instances are good:\n\n{md_table}"

Expand Down Expand Up @@ -3929,7 +3928,7 @@ def stat_axis_values(ttFont, axes_to_check=axes_to_check):
yield FAIL, Message('bad-axis-values',
f"Compulsory STAT Axis Values are incorrect:\n\n {md_table}\n")
if passed:
yield PASS, f"Compulsory STAT Axis Values are correct."
yield PASS, "Compulsory STAT Axis Values are correct."


@check(
Expand Down Expand Up @@ -4117,8 +4116,6 @@ def com_google_fonts_check_ligature_carets(ttFont, ligature_glyphs):
)
def com_google_fonts_check_kerning_for_non_ligated_sequences(ttFont, config, ligatures, has_kerning_info):
"""Is there kerning info for non-ligated sequences?"""
from fontbakery.utils import bullet_list

def look_for_nonligated_kern_info(table):
for pairpos in table.SubTable:
for i, glyph in enumerate(pairpos.Coverage.glyphs):
Expand Down Expand Up @@ -5949,8 +5946,6 @@ def com_google_fonts_check_render_own_name(ttFont):
def com_google_fonts_check_repo_sample_image(readme_contents, readme_directory, config):
"""Check README.md has a sample image."""
import re
from fontbakery.utils import bullet_list

image_path = False
line_number = 0
for line in readme_contents.split('\n'):
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontbakery/profiles/googlefonts_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,4 +713,4 @@ def expected_font_names(ttFont, ttFonts):
if "fvar" in font_cp:
build_fvar_instances(font_cp)
build_stat(font_cp, siblings)
return font_cp
return font_cp

0 comments on commit cc28cfc

Please sign in to comment.