crumpet
crumpet copied to clipboard
Setup mypy
Summary
Add mypy to the backend project.
Background
- Reason for Enhancement: Better type safety and readability.
Proposed Course of Action
- Changes:
- [ ] Create a Mypy config file in the root of the backend project
- [ ] Add Django stubs
- [ ] Add Mypy checks to the pre-commit hooks
- [ ] Add Mypy checks to GitHub action runs
Additional Information
Dependent Issue(s)
- [x] #37
Don't add this to the Vscode recommended extensions yet since it appears to be a bit slow when using the daemon and too slow to use without the daemon.. Vscode environments should use Pylance / Pyright for the time being.
Add this to the GitHub action to be run on PR merge checks and recommend that developers run this as a pre-commit check.