Relative Content

Tag Archive for pythongitmypypre-commit

pre-commit using mypy specify venv cross-platform

I’m using pdm, and each project has its own .venv. When using mypy, I need to specify venv like mypy --python-executable ./.venv/Scripts/python.exe . on windows or mypy --python-executable ./.venv/bin/python . on linux.