Skip to content

prefix-dev/recipe-format

Repository files navigation

New recipe.yaml format schema

This repository contains the JSON Schema for the new recipe.yaml format as described in the following conda CEPs:

How to use

There is a fully JSON Schema 1.0 compliant schema.json at the root of this repository. This file is generated from the model.py using pydantic.

You can use the schema in any editor that supports JSON Schema for yaml. Using the YAML extension for VSCode all you need to do is add:

# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json

to the top of your recipe file and you should have autocompletion and validation!

Contributing

The project is using pixi to be able to quickly format, validate and generate the schema.

Note: When submitting changes to model.py make sure to run following commands locally first.(inorder)

pixi run fmt
pixi run lint
pixi run generate
pixi run test