diff --git a/.cruft.json b/.cruft.json index c645a27..d70a557 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "http://github.com/allenporter/cookiecutter-python", - "commit": "ae5501352e9a6fe363996818fc2b4c82f5816450", + "commit": "b70151bcc6e4ea6c2ffdbdd70540ee19186c90ae", "checkout": null, "context": { "cookiecutter": { diff --git a/script/run-mypy.sh b/script/run-mypy.sh index eede4d7..818669f 100755 --- a/script/run-mypy.sh +++ b/script/run-mypy.sh @@ -5,8 +5,11 @@ set -o errexit # other common virtualenvs my_path=$(git rev-parse --show-toplevel) -if [ -f "${my_path}/venv/bin/activate" ]; then - . "${my_path}/venv/bin/activate" -fi +for venv in venv .venv .; do + if [ -f "${my_path}/${venv}/bin/activate" ]; then + . "${my_path}/${venv}/bin/activate" + break + fi +done mypy ${my_path}