"""Two tutorial rules for the synthetic layouts in make_layouts.py."""

from fabcheck import Deck

deck = Deck("first-fabcheck-deck", units="um")
metal = deck.layer(10, 0, name="M1")

deck.rule(
    "M1.WIDTH",
    "M1 must be at least 0.2 um wide",
    violations=metal.min_width(0.2),
)
deck.rule(
    "M1.SPACE",
    "M1 shapes must be at least 0.3 um apart",
    violations=metal.min_space(0.3),
)
