mypy needs the all packages in the project installed to effectively type-check the project which cannot be done in a pre-commit environment except if you would install all packages there which leads to a lot of duplication. Better do it with pixi in its own pipeline step.
See https://github.com/pytask-dev/pytask/blob/main/.github/workflows/main.yml#L18.
mypy needs the all packages in the project installed to effectively type-check the project which cannot be done in a pre-commit environment except if you would install all packages there which leads to a lot of duplication. Better do it with pixi in its own pipeline step.
See https://github.com/pytask-dev/pytask/blob/main/.github/workflows/main.yml#L18.