numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
228 stars 68 forks source link

add mypy #109

Closed Mic92 closed 1 year ago

Mic92 commented 1 year ago

Unlike normal formatter type checking always needs to take the whole module into account. That's why cannot just pass single files to mypy. This shouldn't be a problem because mypy never actually format files.

Mic92 commented 1 year ago

Real world example: https://github.com/numtide/harvest-invoice-calculator/commit/88d3f1da65cc042ae8fc6cf4238cb80eac3ddb13