Files
Hanzo Dev f89b3a2b17 Add comprehensive test suite and CI
- 50+ unit tests covering all sanitization scenarios
- Tests for API keys, crypto data, financial info, PII
- Tests for context preservation (file paths, function names)
- Edge case testing (empty strings, long text, multiple secrets)
- Real-world scenario tests (env files, config files, code)
- GitHub Actions CI workflow:
  * Multi-OS testing (Ubuntu, macOS, Windows)
  * Python 3.8-3.12 support
  * Lint with ruff
  * Security audit with bandit
  * Coverage reporting to Codecov
- pytest configuration with coverage
- Test dependencies in optional-dependencies
2025-11-14 06:40:23 -08:00

37 lines
838 B
TOML

[project]
name = "claude-sanitizer"
version = "0.1.0"
description = "AI-powered intelligent data sanitization using Claude"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Hanzo AI", email = "hello@hanzo.ai" }]
requires-python = ">=3.8"
dependencies = [
"anthropic>=0.39.0",
"click>=8.1.0",
"rich>=13.0.0",
]
[project.scripts]
claude-sanitizer = "claude_sanitizer.cli:main"
[project.optional-dependencies]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["claude_sanitizer"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=claude_sanitizer --cov-report=term-missing"