- 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.
11 lines
307 B
Python
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
|