Configure ty to fail on warnings (#2804)

This commit is contained in:
Jeremiah Lowin 2026-01-07 11:17:49 -05:00 committed by GitHub
commit befaad8a08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -143,6 +143,9 @@ python-version = "3.10"
# Some code uses `# ty: ignore[invalid-argument-type]` for this limitation.
# TODO: Remove these ignores once ty supports union narrowing
[tool.ty.terminal]
error-on-warning = true
[tool.ruff.lint]
fixable = ["ALL"]
ignore = [

View file

@ -135,10 +135,11 @@ class TestSupabaseProvider:
)
assert provider.auth_route == "custom/auth/route"
assert isinstance(provider.token_verifier, JWTVerifier)
assert (
provider.token_verifier.jwks_uri
== "https://abc123.supabase.co/custom/auth/route/.well-known/jwks.json"
) # type: ignore[attr-defined]
)
def test_custom_auth_route_trailing_slash(self):
provider = SupabaseProvider(