-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dvc.yaml pipeline snippets (#4233)
- Loading branch information
1 parent
8bffe8b
commit b59033c
Showing
4 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"Get Started with DVC pipelines": { | ||
"prefix": "dvc-help", | ||
"body": [ | ||
"# The DVC for VS Code extension provides snippets to help with building dvc.yaml pipelines.", | ||
"# These snippets, all prefixed with dvc-, are designed to give pointers on basic usage.", | ||
"# Type dvc- in the editor to see the list of available snippets.", | ||
"# Visit https://dvc.org/doc/user-guide/project-structure/dvcyaml-files for further details on building pipelines.", | ||
"# On-hover information and completions will be provided for each of the keys in a dvc.yaml file if the redhat.yaml extension is installed." | ||
], | ||
"description": "Information on the support provided for building dvc.yaml pipelines" | ||
}, | ||
"Pipeline Stage Template": { | ||
"prefix": "dvc-pipeline-stage", | ||
"body": [ | ||
" ${1:stage name}:", | ||
" cmd: ${2:command for the stage, e.g. python train.py}", | ||
" deps:", | ||
" - ${3:list dependencies for the stage, e.g. train.py}", | ||
" params:", | ||
" - ${4:list params file(s) for the stage, e.g params.yaml}", | ||
" metrics:", | ||
" - ${5:list metric file(s) for the stage, e.g metrics.json}", | ||
" outs:", | ||
" - ${6:list output(s) of the stage, e.g. model.pkl}" | ||
], | ||
"description": "Stage template for dvc.yaml pipeline" | ||
}, | ||
"Minimal Pipeline Stage Template": { | ||
"prefix": "dvc-pipeline-minimal-stage", | ||
"body": [ | ||
" ${1:stage name}:", | ||
" cmd: ${2:command for the stage, e.g. python train.py}", | ||
" deps:", | ||
" - ${3:list dependencies for the stage, e.g. train.py}", | ||
" outs:", | ||
" - ${4:list output(s) of the stage, e.g. model.pkl}" | ||
], | ||
"description": "Minimal stage template for dvc.yaml pipeline" | ||
}, | ||
"Foreach Pipeline Stage Template": { | ||
"prefix": "dvc-pipeline-foreach-stage", | ||
"body": [ | ||
" ${1:stage name}:", | ||
" foreach:", | ||
" - ${2:list of simple values to iterate over}", | ||
" do:", | ||
" cmd: ${3:command to be run for each templated item, e.g python evaluate.py} \"\\${item}\"", | ||
" outs:", | ||
" - \\${item}.${5:suffix for the templated output file, e.g. pkl}" | ||
], | ||
"description": "Foreach stage template for dvc.yaml pipeline" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters