qurator-spk/dinglehopper

mypy vs pre-commit mypy

Closed this issue · 2 comments

I get error with pre-commit's mypy, but not with the local mypy. Why?

mypy src

vs

pre-commit run -a mypy

The hook runs in an isolated environment, adding dependencies in .pre-commit-config.yaml fixes this.