← 返回
安全合规 中文

MLOps Validation CN

Rigorous validation with typing, linting, testing, and security
通过类型检查、代码检查、测试及安全措施进行严格验证。
guohongbin-git
安全合规 clawhub v1.0.0 1 版本 99866.1 Key: 无需
★ 0
Stars
📥 746
下载
💾 11
安装
1
版本
#chinese#latest#mlops

概述

MLOps Validation ✅

Automated quality and security checks.

Features

1. Pre-commit Hooks 🔧

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:

  • Ruff (linting + formatting)
  • MyPy (type checking)
  • Bandit (security)

2. Test Fixtures 🧪

Shared pytest setup:

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

# 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

# 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

Changelog

v1.0.0 (2026-02-18)

  • Initial OpenClaw conversion
  • Added pre-commit config
  • Added test fixtures

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 12:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,604
productivity

Skill Finder Cn

guohongbin-git
Skill 查找器 | Skill Finder. 帮助发现和安装 ClawHub Skills | Discover and install ClawHub Skills. 回答'有什么技能可以X'、'找一个技能' | Answers '
★ 131 📥 38,862
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,438