apache/kibble-1

Introduce Mypy in pre-commit

Opened this issue · 3 comments

Description
Add Mypy in pre-commit.
https://mypy.readthedocs.io/en/stable/

Use case
We would like to keep our code clean and tidy -- that's why setting up Mypy in pre-commit is a good idea.

Related Issues
N/A

+1 for this and I think @Humbedooh also likes the type hints!

What do you think about flake8 also?

I think that if we introduce pylint #55 then we don't need flake8. We are also using black and flake8 is not always ok with black formatting - and it doesn't format the code automatically 😉