Coverage for .nox/test-3-9/lib/python3.9/site-packages/nskit/recipes/python/api.py: 0%
7 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"""API Service Recipe."""
2from typing import List, Union
4from pydantic import Field
6from nskit.mixer import File, Folder, LicenseFile
7from nskit.recipes.python import ingredients, PyRecipe
8from nskit.recipes.python.ingredients import api as api_ingredients
11class APIRecipe(PyRecipe):
12 """API Service Recipe."""
14 contents: List[Union[File, Folder]] = Field(
15 [
16 ingredients.gitignore,
17 ingredients.noxfile,
18 ingredients.pre_commit,
19 api_ingredients.pyproject_toml,
20 api_ingredients.readme_md,
21 ingredients.test_dir,
22 api_ingredients.src_dir,
23 api_ingredients.docker.dockerignore,
24 api_ingredients.docker.api_dockerfile,
25 ingredients.docs_dir,
26 LicenseFile()
27 ],
28 description='The folder contents')