Install
openclaw skills install mlops-validation-cnRigorous validation with typing, linting, testing, and security
openclaw skills install mlops-validation-cnAutomated quality and security checks.
Setup automated checks:
cp references/pre-commit-config.yaml ../your-project/.pre-commit-config.yaml
cd ../your-project
pre-commit install
Runs on every commit:
Shared pytest setup:
cp references/conftest.py ../your-project/tests/
Provides fixtures:
sample_df - Test dataframetemp_dir - Temporary directorysample_config - Config dicttrain_test_split - Pre-split data# Copy pre-commit config
cp references/pre-commit-config.yaml ./.pre-commit-config.yaml
# Install hooks
pre-commit install
# Run manually
pre-commit run --all-files
# Setup test fixtures
cp references/conftest.py tests/
# Run tests
pytest tests/ -v --cov=src
# Type check
mypy src/
# Lint
ruff check src/ tests/
# Format
ruff format src/ tests/
# Test
pytest tests/ --cov=src
# Security scan
bandit -r src/
Converted from MLOps Coding Course