Commit Graph

21 Commits

Author SHA1 Message Date
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
3e2e2dfbc1 feat: enhance virtual environment detection and error formatting
- Added functions to improve detection of the project's virtual environment, allowing for better handling of various project structures.
- Implemented error formatting for linter outputs, ensuring clearer and more informative messages for type errors and code quality issues.
- Updated tests to cover comprehensive scenarios for virtual environment detection and error formatting, ensuring robustness and reliability.
2025-10-04 21:19:39 +00:00
5480b8ab06 xx 2025-10-03 22:57:31 +00:00
3994364894 Merge pull request #1 from vasceannie/codex/extend-test-suite-for-edge-cases
fix: adapt claude command detection for platform variants
2025-10-02 05:58:46 -04:00
44f9d94131 Update tests/hooks/test_dynamic_usage.py
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
2025-10-02 05:51:36 -04:00
232e1ceaac fix: streamline claude command resolution 2025-10-02 05:42:39 -04:00
c575090000 fix: adapt claude command detection for platform variants 2025-10-02 05:15:28 -04:00
f49dded880 feat: add comprehensive hook validation report and integration tests
- Introduced a new HOOK_VALIDATION_REPORT.md to document the results of comprehensive testing for code quality hooks.
- Implemented integration tests for core blocking functionality, ensuring that forbidden patterns (e.g., typing.Any, type: ignore, old typing patterns) are properly blocked.
- Added tests for command line execution and enforcement modes to validate hook behavior in various scenarios.
- Enhanced detection functions for typing.Any usage, type: ignore, and old typing patterns with comprehensive test cases.
- Improved error handling and messaging in the hook system to provide clearer feedback on violations.
- Established a structured approach to testing, ensuring all critical hooks are validated and functioning correctly.
2025-10-02 08:20:02 +00:00
9cf5baafb4 feat: implement test quality checks with enhanced guidance and external context integration
- Added a new QualityConfig class to manage test quality check configurations.
- Implemented test quality checks for specific rules in test files, including prevention of conditionals, loops, and generic exceptions.
- Integrated external context providers (Context7 and Firecrawl) for additional guidance on test quality violations.
- Enhanced error messaging to provide detailed, actionable guidance for detected issues.
- Updated README_HOOKS.md to document new test quality features and configuration options.
- Added unit tests to verify the functionality of test quality checks and their integration with the pretooluse_hook.
2025-09-29 20:59:32 +00:00
b8c8a4f952 ok 2025-09-28 22:02:45 +00:00
55547a7f3d ok 2025-09-28 22:02:24 +00:00
d3e4174545 xx 2025-09-21 10:28:50 +00:00
6f45d68079 x 2025-09-17 18:55:08 +00:00
0649677e4d x 2025-09-17 17:01:02 +00:00
f1b61a6ae7 Add detection for typing.Any usage and enhance quality checks
- Implemented a new function to detect usage of typing.Any in code, which raises warnings during pre-tool use.
- Updated the pretooluse_hook to handle quality issues related to typing.Any and integrate it with existing quality checks.
- Modified the response structure to include permissionDecision instead of decision for consistency across hooks.
- Enhanced test coverage for typing.Any usage detection in both single and multi-edit scenarios.
- Adjusted existing tests to reflect changes in response structure and ensure proper validation of quality checks.
2025-09-17 14:55:43 +00:00
917b0de16c feat: enhance internal duplicate detection by filtering common boilerplate patterns 2025-09-17 12:39:27 +00:00
7bbbe3f5b6 Refactor code structure for improved readability and maintainability 2025-09-16 20:30:58 -04:00
8d6454b749 x 2025-09-16 21:33:47 +00:00
6e06f38d5d feat: add git hooks and test infrastructure with quality enforcement 2025-09-10 01:42:49 -04:00
0475c3cae6 feat: implement code quality analysis toolkit with modernization, complexity and duplication detection 2025-08-26 12:23:57 -04:00
530c49accd Initial commit 2025-08-26 14:40:33 +00:00