---
name: mlops-validation-cn-9347797d6eab
version: 1.0.0
description: Rigorous validation with typing, linting, testing, and security
license: MIT
---

# MLOps Validation ✅

Automated quality and security checks.

## Features

### 1. Pre-commit Hooks 🔧

Setup automated checks:

```bash
cp references/pre-commit-config.yaml ../your-project/.pre-commit-config.yaml
cd ../your-project
pre-commit install
```

Runs on every commit:
- Ruff (linting + formatting)
- MyPy (type checking)
- Bandit (security)

### 2. Test Fixtures 🧪

Shared pytest setup:

```bash
cp references/conftest.py ../your-project/tests/
```

Provides fixtures:
- `sample_df` - Test dataframe
- `temp_dir` - Temporary directory
- `sample_config` - Config dict
- `train_test_split` - Pre-split data

## Quick Start

```bash
# 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
```

## Commands

```bash
# Type check
mypy src/

# Lint
ruff check src/ tests/

# Format
ruff format src/ tests/

# Test
pytest tests/ --cov=src

# Security scan
bandit -r src/
```

## Author

Converted from [MLOps Coding Course](https://github.com/MLOps-Courses/mlops-coding-skills)

## Changelog

### v1.0.0 (2026-02-18)
- Initial OpenClaw conversion
- Added pre-commit config
- Added test fixtures


---
Source attribution: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/mlops-validation-cn/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2025 skill-library-mcp contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/mlops-validation-cn/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: DevOps / SRE, ML / AI Engineer, QA / Test Engineer
Specialties: DevOps, Testing
Tools: Pre Commit
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: a5500136870ca777d47b7bba8cba6e0e47be240a7b60d29798e1a6e7e31065c0
