Closed virtuald closed 5 months ago
FWIW reviewdog only flags violations within the diff... which works well if the linter doesn't look cross-file, but type checkers do, and changing the type in one module can cause a type check error in a different module, which reviewdog wouldn't show.
We can use a problem matcher to have GitHub annotations though, like https://github.com/thedropbears/pycubehammer/blob/3bca17130da8621c7ba9990a8c9c016622f7efdd/.github/workflows/ci.yml#L44-L48
Use pyright instead of mypy?
In my experience I've personally found pyright to be too strict. I haven't run it on commands2 yet though.
I only run pyright basic mode. I'd never do strict mode lol
I don't really care which one is run, as long as one of them is, and it outputs annotations on the PR. I like the problem matcher approach.
Use pyright instead of mypy? That's what vscode python runs