Coverage for .nox/test-3-9/lib/python3.9/site-packages/nskit/recipes/recipe.py: 0%
9 statements
« prev ^ index » next coverage.py v7.4.2, created at 2024-02-25 17:38 +0000
« prev ^ index » next coverage.py v7.4.2, created at 2024-02-25 17:38 +0000
1"""A Recipe for creating Recipes, meta!"""
2from typing import List, Union
4from pydantic import Field
6from nskit.mixer import File, Folder, LicenseFile
7from nskit.mixer.components.recipe import RECIPE_ENTRYPOINT
8from nskit.recipes.python import ingredients, PyRecipe
9from nskit.recipes.python.ingredients import recipe as recipe_ingredients
12class RecipeRecipe(PyRecipe):
13 """A Recipe for creating Recipes, meta!"""
15 recipe_entrypoint: str = RECIPE_ENTRYPOINT
16 contents: List[Union[File, Folder]] = Field(
17 [
18 ingredients.gitignore,
19 ingredients.noxfile,
20 ingredients.pre_commit,
21 recipe_ingredients.pyproject_toml,
22 recipe_ingredients.readme_md,
23 ingredients.test_dir,
24 recipe_ingredients.src_dir,
25 ingredients.docs_dir,
26 LicenseFile()
27 ],
28 description='The folder contents')