Feat: Add Python Static type checking in the pre commit hook
Describe the feature
./scripts/pre-commit
Currently only checks python's formatting, addition of mypy checks in the pre commit hooks will help resolve most of the lint fails before a branch is opened.
Add ScreenShots
Record
- [x] I agree to follow this project's Code of Conduct
- [ ] I want to work on this issue
⚠️ Potential Duplicate Issue (Semantic Match)
This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:
-
Feat:Better pre commit hook for linting (#331, closed) https://github.com/AOSSIE-Org/PictoPy/issues/331 Similarity: 66.4%
-
Feat: Add Automatic Local Linting on Commit (#613, open) https://github.com/AOSSIE-Org/PictoPy/issues/613 Similarity: 66.1%
-
DX (Developer Experience): Pre-commit Hooks for Multi-language Linting (#954, open) https://github.com/AOSSIE-Org/PictoPy/issues/954 Similarity: 62.7%
Please review before proceeding.
Hi @rohan-pandeyy,
I noticed this is marked In Progress with #1751 linked to close it. If any additional help, testing, or follow-up is needed on adding mypy to ./scripts/pre-commit, I’d be happy to assist—please let me know!
Hi @rohan-pandeyy , I m new to opensource and wasn't aware that this was self assigned. Kindly look through it and convey me whether to keep mine open or close the pull request.