JSON Schema for dvc.yaml
file format.
It can provide better autocompletion, validation, and linting for dvc.yaml
files.
Use the following URL to obtain the latest JSON schema for dvc.yaml
:
https://raw.githubusercontent.com/iterative/dvcyaml-schema/master/schema.json
If you have installed YAML extension, it'll automatically fetch the latest dvcyaml-schema, and should work out of the box.
But you can specify explicitly as well by adding following contents to your settings:
{
"yaml.schemas": {
"https://raw.githubusercontent.com/iterative/dvcyaml-schema/master/schema.json":
"dvc.yaml"
}
}
You can also specify custom URL or path instead for debugging/testing purposes.
Follow this instruction.
python3.10+
and pip
).
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
pre-commit
hook.
$ pip install pre-commit
$ pre-commit install
pre-commit
hook should run automatically and format/lint code, generate new schema and run tests.