Skip to content

Commit

Permalink
Apply cruft updates (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter authored Nov 29, 2024
1 parent 05c2b00 commit f3fa360
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "http://github.com/allenporter/cookiecutter-python",
"commit": "ae5501352e9a6fe363996818fc2b4c82f5816450",
"commit": "b70151bcc6e4ea6c2ffdbdd70540ee19186c90ae",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
9 changes: 6 additions & 3 deletions script/run-mypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit f3fa360

Please sign in to comment.