rules_as_dep()

def rules_as_dep(rules, rule_name) -> string

Returns the rule as a dependency for the given rule name from the given rule group.

Args

  • rules: dict: The return value of rules_new()
  • rule_name: string: The name of the rule to retrieve.

rules_as_rule()

def rules_as_rule(rules, rule_name) -> string

Returns the rule for the given rule name from the given rule group.

Args

  • rules: dict: The return value of rules_new()
  • rule_name: string: The name of the rule to retrieve.

rules_name()

def rules_name(rules) -> string

Returns the name of the given rule group.

Args

  • rules: dict: The return value of rules_new()

rules_name_as_dep()

def rules_name_as_dep(rules) -> string

Returns the name of the given rule group.

Args

  • rules: dict: The return value of rules_new()

rules_new()

def rules_new(name, rules) -> dict

Returns a new rule group with the given name and rules.

Args

  • name: string:
  • rules: list:

Returns

dict[str, str]: A new rules object with the given name and rules.