Files
claude-scripts/test_any_should_block.py
Travis Vasceannie f3832bdf3d feat: enhance test coverage and improve code quality checks
- Updated test files to improve coverage for Any usage, type: ignore, and old typing patterns, ensuring that these patterns are properly blocked.
- Refactored test structure for better clarity and maintainability, including the introduction of fixtures and improved assertions.
- Enhanced error handling and messaging in the hook system to provide clearer feedback on violations.
- Improved integration tests to validate hook behavior across various scenarios, ensuring robustness and reliability.
2025-10-08 09:10:32 +00:00

11 lines
307 B
Python

"""Fixture module used to verify Any detection in the guard."""
# ruff: noqa: ANN401 # These annotations intentionally use Any for the test harness.
from typing import Any
def process_data(data: Any) -> Any:
"""Return the provided value; the guard should block this in practice."""
return data