Skip to content

Commit

Permalink
now using spec_imports to import checks 040 and 042 from googlefonts
Browse files Browse the repository at this point in the history
  • Loading branch information
cjchapman authored and felipesanches committed Mar 6, 2019
1 parent 4990d21 commit d6d5e8e
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions Lib/fontbakery/specifications/adobe_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@
from fontbakery.checkrunner import (PASS, FAIL, Section)
from fontbakery.fonts_spec import spec_factory

from fontbakery.specifications.googlefonts import (
com_google_fonts_check_040, com_google_fonts_check_042)

spec_imports = ((
'.',
('general', 'cmap', 'head', 'os2', 'post', 'name', 'hhea', 'dsig', 'hmtx',
'gpos', 'gdef', 'kern', 'glyf', 'fvar', 'shared_conditions', 'loca')
),)


# The line below is to get around the flake8 complaint that these checks
# are "imported but unused".
# ToDo: find if there's a better way to handle this.
_imported_checks = [com_google_fonts_check_040, com_google_fonts_check_042]
spec_imports = (
('.',
('general', 'cmap', 'head', 'os2', 'post', 'name', 'hhea', 'dsig',
'hmtx', 'gpos', 'gdef', 'kern', 'glyf', 'fvar', 'shared_conditions',
'loca')),
('fontbakery.specifications.googlefonts',
('com_google_fonts_check_040', 'com_google_fonts_check_042')),
)

# this is from the output of
# $ fontbakery check-specification fontbakery.specifications.googlefonts -L
Expand Down

0 comments on commit d6d5e8e

Please sign in to comment.