RecipeRefused
A recipe was refused because it breaks a rule; nothing on disk changed.
Usage
RecipeRefused(
message,
*,
rule=None,
path=None,
recipe=None,
)Attributes
rule-
The number of the broken rule (see useful_views.RULES or
useful-views rules), or None when the recipe name itself is refused. rule_title-
The rule’s one-line title, or None.
path-
The file to fix, relative to the project root, when there is one.
recipe-
The recipe that was refused.
refusals: list[RecipeRefused]-
Every refusal found at once. sync checks all recipes before changing anything and raises the first, with the rest here; otherwise this is just
[self].