[ty] Ignore possibly-unresolved-reference by default (#17934)

This commit is contained in:
Micha Reiser
2025-05-08 17:44:56 +02:00
committed by GitHub
parent 067a8ac574
commit d608eae126
9 changed files with 97 additions and 72 deletions

6
.github/mypy-primer-ty.toml vendored Normal file
View File

@@ -0,0 +1,6 @@
#:schema ../ty.schema.json
# Configuration overrides for the mypy primer run
# Enable off-by-default rules.
[rules]
possibly-unresolved-reference = "warn"

View File

@@ -50,6 +50,10 @@ jobs:
run: |
cd ruff
echo "Enabling mypy primer specific configuration overloads (see .github/mypy-primer-ty.toml)"
mkdir -p ~/.config/ty
cp .github/mypy-primer-ty.toml ~/.config/ty/ty.toml
PRIMER_SELECTOR="$(paste -s -d'|' crates/ty_python_semantic/resources/primer/good.txt)"
echo "new commit"