Repository navigation
chore: format files that were merged without ruff - #1865
Merged
Merged
Conversation
Contributor
|
The following capabilities are marked
The following capabilities are marked
These may have been renamed, removed, or never registered. Please update the capability matrix. |
spydon
added a commit
that referenced
this pull request
Oct 28, 2026
Stacked on #1865, which formats the files these checks would otherwise fail on and restores the `_async` docstring that #1569 only added to `_sync`. Merge that one first. ## Summary CI only runs `make <pkg>.tests` (mypy and pytest), so nothing checks lint, formatting, or whether the generated `_sync` code matches its `_async` source. #1569 is an example: it edited `_sync/gotrue_client.py` directly, and the next `make auth.build-sync` would have silently deleted that change. This adds a `lint` job with three steps, using the ruff version locked in `uv.lock`: - `ruff check --output-format=github`, so violations show as inline annotations on the PR - `ruff format --check` - regenerate `_sync` with the new root `make build-sync` target, run ruff, and fail if anything under `src/` changed or was added, printing the diff The root `build-sync` target runs `build-sync` for every package that has one (`functions`, `storage`, `auth`, `postgrest`, `supabase`; `realtime` is async only), so contributors can run the same thing locally. The job runs in parallel with the test matrix and does not gate `release-please`. ## Verification Locally, the sync check passes on this branch and fails when the `_async` docstring from #1865 is reverted, reporting `src/auth/src/supabase_auth/_sync/gotrue_client.py`.
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.
Summary
Running
make ruffonmainreformats two files, so every contributor who runs it picks up unrelated changes.src/supabase/tests/test_function_configuration.py: a blank line with trailing whitespace, a missing blank line between functions, and no newline at the end of the file (from test: add coverage for Supabase client service URLs #1819).src/auth/src/supabase_auth/_sync/gotrue_client.py: docs: Clarify when get_user() returns None #1569 added a paragraph to theget_user()docstring by editing the generated_syncfile directly, with trailing whitespace. The async source never got the paragraph. This adds it to_async/gotrue_client.pyand regenerates_syncwithmake auth.build-sync, so both trees match again and the whitespace is gone.After this,
ruff format --checkandruff checkpass on the whole repository. A follow-up PR adds those checks to CI.