Open VannTen opened 1 year ago
I'd rate "local dev" as a huge pro, therefor I would prefer the pre-commit alternative
/kind documentation /priority important-soon
/sig devsecops
Actually, it looks like pytest has a --mypy
option.
So we could run it as one pytest test.
One benefit is that it will complain when it will use types hints from installed dependency (should they not be in types-all
) whereas pre-commit will not install anything from the repository.
(for example, compare the difference in output on current master of thoth-station/adviser bewteen pipenv run pytest
and pre-commit run --all-files mypy` )
Is your feature request related to a problem? Please describe. I notice we use two ways of running mypy, via pre-commit, and via the thoth-pytest* image. We should remove one of those two, for the sake of consistency (+ less maintenance).
Here is my understanding of the two alternatives:
pre-commit:
pre-commit autoupdate
)separate image (same as pytest):
Any prefs ? @goern @harshad16