crumpet icon indicating copy to clipboard operation
crumpet copied to clipboard

Setup mypy

Open tomtitherington opened this issue 2 years ago • 1 comments

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

tomtitherington avatar Jan 05 '24 10:01 tomtitherington

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.

tomtitherington avatar Feb 19 '24 21:02 tomtitherington