Skip to content

Commit

Permalink
fix: create mypy cache directory (#5240)
Browse files Browse the repository at this point in the history
MyPy expects the cache directory to be there. We now remove it after
each super-linter run to avoid leftovers, so we need to create it before
running MyPy.

See python/mypy#10768
and python/mypy#10863
  • Loading branch information
ferrarimarco committed Feb 6, 2024
1 parent 1bd6c0d commit 38edbe5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/functions/detectFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@ function RunAdditionalInstalls() {
fi
fi

if [ "${VALIDATE_PYTHON_MYPY}" == "true" ] && [ -e "${FILE_ARRAYS_DIRECTORY_PATH}/file-array-PYTHON_MYPY" ]; then
local MYPY_CACHE_DIRECTORY_PATH
MYPY_CACHE_DIRECTORY_PATH="${GITHUB_WORKSPACE}/.mypy_cache"
debug "Create MyPy cache directory: ${MYPY_CACHE_DIRECTORY_PATH}"
mkdir -v "${MYPY_CACHE_DIRECTORY_PATH}"
fi

###############################
# Run installs for R language #
###############################
Expand Down

0 comments on commit 38edbe5

Please sign in to comment.