Update documentation and scripts for font addition process; introduce uv run add-font CLI command for streamlined font management. Enhance formula generation with improved class name formatting and validation steps. Remove outdated font formula files.
This commit is contained in:
parent
69d8156b09
commit
56b64d0b34
266 changed files with 1187 additions and 8145 deletions
14
tests/test_formula_exists.py
Normal file
14
tests/test_formula_exists.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"""Tests that a Formula file exists for every font."""
|
||||
import pytest
|
||||
|
||||
from tests.conftest import FORMULA_DIR, get_font_dir_names
|
||||
|
||||
|
||||
@pytest.mark.parametrize("font_name", get_font_dir_names())
|
||||
def test_formula_file_exists(font_name):
|
||||
"""Formula/font-<name>.rb exists for each font folder."""
|
||||
# font_name is e.g. "font-acrylic-hand"; formula file is font-acrylic-hand.rb
|
||||
formula_path = FORMULA_DIR / f"{font_name}.rb"
|
||||
assert formula_path.is_file(), (
|
||||
f"Missing formula for {font_name}: expected {formula_path}"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue