mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Configure ty to fail on warnings (#2804)
This commit is contained in:
parent
4dca48e980
commit
befaad8a08
2 changed files with 5 additions and 1 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue