[ty] Use full project names in good.txt

This commit is contained in:
David Peter 2025-09-24 09:06:20 +02:00
parent 09f570af92
commit 048182635a
4 changed files with 14 additions and 4 deletions

View file

@ -5,7 +5,9 @@ echo "Enabling mypy primer specific configuration overloads (see .github/mypy-pr
mkdir -p ~/.config/ty
cp .github/mypy-primer-ty.toml ~/.config/ty/ty.toml
PRIMER_SELECTOR="$(paste -s -d'|' "${PRIMER_SELECTOR}")"
# Join the lines (project names) of the file into a large regex
# using `|` and escape parentheses.
PRIMER_SELECTOR="$(paste -s -d'|' "${PRIMER_SELECTOR}" | sed -e 's@(@\\(@g' -e 's@)@\\)@g')"
echo "new commit"
git rev-list --format=%s --max-count=1 "${GITHUB_SHA}"