Let's add a static type checking tool to this project and get all of the classes and methods to be statically typed. We can use mypy for this since this is what we are mainly using at Mozilla.
[ ] Add pyright to poetry and configure it in pyproject.toml
[ ] Fix all objects and methods to be type checked
[ ] Update test files to be type checked
[ ] Add a command to the Makefile to run the static type checking
[ ] Add a test to the github actions workflow to run the type checker on pull requests.
Here are some basic options we should use my mypy, we can adjust these later as well. These should exist within the pyproject.toml file.
Let's add a static type checking tool to this project and get all of the classes and methods to be statically typed. We can use mypy for this since this is what we are mainly using at Mozilla.
pyproject.toml
Makefile
to run the static type checkingHere are some basic options we should use my mypy, we can adjust these later as well. These should exist within the
pyproject.toml
file.