Describe the task
Use pylint's similarities detection to identify and refactor duplicated code throughout the data/src/ pipeline, then update the pre-commit configuration to prevent future code duplication. The current pre-commit hook for similarities checking is non-blocking and reveals multiple opportunities to reduce code duplication and technical debt. This task involves running the pylint similarities analysis, refactoring identified duplications, and then switching the pre-commit hook from non-blocking to blocking mode to enforce code quality standards and prevent new duplicated code from being introduced.
Acceptance Criteria
Additional context
- Use the existing pylint similarities configuration:
pylint --disable=all --enable=similarities --score=no data/src/
- Prioritize changes that provide the most significant reduction in technical debt
Describe the task
Use pylint's similarities detection to identify and refactor duplicated code throughout the
data/src/pipeline, then update the pre-commit configuration to prevent future code duplication. The current pre-commit hook for similarities checking is non-blocking and reveals multiple opportunities to reduce code duplication and technical debt. This task involves running the pylint similarities analysis, refactoring identified duplications, and then switching the pre-commit hook from non-blocking to blocking mode to enforce code quality standards and prevent new duplicated code from being introduced.Acceptance Criteria
data/src/to generate a comprehensive report of code duplication|| true)Additional context
pylint --disable=all --enable=similarities --score=no data/src/