Repository navigation
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough
🚥 Pre-merge checks | ✅ 2 | ❌ 1
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Pull Request Test Coverage Report for Build 21905305159Details
💛 - Coveralls |
This was referenced Feb 5, 2026
This comment was marked as outdated.
This comment was marked as outdated.
this was likely a merge mishap when merging main into storage's branch
this is in order to publish a new major version as alpha.
This was referenced Nov 4, 2026
spydon
added a commit
that referenced
this pull request
Nov 6, 2026
…y rules (#2008) ## Summary SDK-2910. The shared ruff config from #1887 (SDK-1689) was lost when v3 became `main` in #1370. Every package except `utils` had its own `[tool.ruff.lint]` section again. Ruff does not merge those with the root, so `auth`, `postgrest`, `storage`, `realtime` and `functions` skipped the root's `B` and `ANN2` rules. That hid a regression of the `text_search` mutable default that #1887 had fixed. This restores the shared config, adds more rule families, and tightens pyrefly now that the minimum is Python 3.12. ## Config - Every package `pyproject.toml` uses `[tool.ruff] extend = "../../pyproject.toml"` instead of its own rule list. - The root config brings back `PLE`, `PLW`, `PIE`, `LOG`, `FLY` and `YTT` from #1887, and adds `ASYNC`, `C4`, `RSE`, `SIM`, `RET`, `PYI`, `PT`, `TC`, `PERF` and `RUF`. The full `PT` and `RUF` families replace `PT014` and `RUF100`. `RUF006` and `ASYNC` also cover SDK-2832. - `TC` treats `pydantic.BaseModel` subclasses and standard and pydantic dataclasses as runtime-evaluated. The imports their fields need stay at runtime, so pydantic validation and `typing.get_type_hints` on them still work. - `pyrefly.toml` pins `python-version = "3.12"`. Before, pyrefly used whatever interpreter the virtual environment had. It also promotes `unreachable`, `division-by-zero`, `no-any-return-explicit` and `untyped-namedtuple` to errors. All four were clean. ## Library fixes - **postgrest:** `text_search` no longer uses a mutable `{}` default (`B006`). `APIError` raised after a failed response validation chains the `ValidationError` (`B904`). - **realtime:** `MaxRetriesExceeded` chains the last connection error (`B904`). `RealtimePresence` no longer overwrites its loop variable (`PLW2901`). `__aexit__` uses `contextlib.suppress` (`SIM105`). - **storage:** The missing-trailing-slash warning now points at the code that creates the client (`B028`). - **All clients:** `__enter__` and `__aenter__` return `Self` instead of the concrete class, so subclasses get the right type (`PYI034`). - Imports used only in annotations moved under `TYPE_CHECKING` (`TC`). `__all__` lists are sorted (`RUF022`). - `auth`'s `AMREntry.method` and `Factor.factor_type` keep `Literal[...] | str` with `# noqa: PYI051`, because the literals are there for editor completion. ## Test fixes - **realtime:** Tests keep a reference to the tasks they start with `asyncio.create_task` and await them (`RUF006`). Nested `async with` blocks are merged (`SIM117`). - **storage:** Removed the unused `delete_left_buckets` fixture, along with the global bucket list and finalizer helpers that only it used (`PT021`, `PLW0602`). - Fixtures that only returned a value no longer `yield` (`PT022`). Their return types now match what they return, which pyrefly checks. - Parametrize names are tuples (`PT006`). `pytest.raises` and `pytest.warns` calls set `match` (`PT011`, `PT030`, `RUF043`). The duplicate `sanitize_param` case is removed (`PT014`). - The auth sync tests were regenerated with `make auth.build-sync`. ## Testing - `make ruff` and `make pyrefly` pass on all packages. - `functions`, `utils`, `supabase`, `postgrest`, `realtime` and `storage` test suites pass locally. - `auth`: the local runs failed with connection errors to the auth server on `localhost:9998`, so CI is the check for it.
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v3 tracking PR
Tracking PR for all changes that are to come in the next major release.