Multimodal-GPT
Multimodal-GPT copied to clipboard
[Add] Introduce Pre-Commit Hooks and Configuration Files
Description
This commit introduces a pre-commit configuration file and a setup configuration file to improve the code quality and maintainability of the project.
Changes:
- A new
.pre-commit-config.yamlfile has been added, which includes several hooks to maintain code quality and consistency. These hooks include:flake8for Python style guide enforcementisortfor sorting importsyapffor auto-formatting Python codetrailing-whitespace,check-yaml,end-of-file-fixer,requirements-txt-fixer,double-quote-string-fixer,check-merge-conflict,fix-encoding-pragma,mixed-line-endingfor various code cleanup and sanity checksmdformatfor Markdown formattingcodespellfor spell checkingdocformatterfor Python docstring formattingpyupgradefor upgrading Python syntax
- A new
setup.cfgfile has been added, which includes configuration settings foryapfandisort.
These changes should help in maintaining the quality of the codebase, enforcing coding standards, and making the review process smoother and more efficient.