Validate Your YAML (Linter)
Last updated
Was this helpful?
Was this helpful?
# ❌ Incorrect indentation
- step:
name: train
image: python:3.9 # This line should be indented 4 spaces# ✅ Correct indentation
- step:
name: train
image: python:3.9# ❌ Missing image
- step:
name: train
command: python train.py# ✅ Complete step
- step:
name: train
image: python:3.9
command: python train.py# ❌ Invalid type
parameters:
- name: learning_rate
default: 0.001
type: number # Should be 'float'# ✅ Valid type
parameters:
- name: learning_rate
default: 0.001
type: float# ❌ Missing colon after 'command'
- step:
name: train
image: python:3.13
command
- python train.py# ✅ Correct syntax
- step:
name: train
image: python:3.13
command:
- python train.py$ vh lint
Success! /Users/myuser/Projects/ml-project/valohai.yaml: No errors