fix code-style
@@ -5503,24 +5503,22 @@ def com_google_fonts_check_meta_script_lang_tags(ttFont):
@check(
id = "com.google.fonts/check/no_debugging_tables",
rationale = """
- Tables such as `Debg` are useful in the pre-production stages of font
- development, but add unnecessary bloat to a production font and should
- be removed before release.
+ Tables such as `Debg` are useful in the pre-production stages of font development, but add unnecessary bloat to a production font and should be removed before release.
""",
severity = 6,
- proposal="https://github.com/googlefonts/fontbakery/issues/3357",
+ proposal = 'https://github.com/googlefonts/fontbakery/issues/3357',
)
def com_google_fonts_check_no_debugging_tables(ttFont):
- """Ensure fonts do not contain any preproduction tables."""
+ """Ensure fonts do not contain any pre-production tables."""
DEBUGGING_TABLES = ["Debg", "FFTM"]
found = [t for t in DEBUGGING_TABLES if t in ttFont]
if found:
- yield WARN, Message(
- "has-debugging-tables",
- "This font file contains the following pre-production tables:"
- + ", ".join(found),
- )
+ tables_list = ", ".join(found)
+ yield WARN,\
+ Message("has-debugging-tables",
+ f"This font file contains the following"
+ f" pre-production tables: {tables_list}")
else:
yield PASS, "OK"
