• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41845050182 / 25
99%
main: 99%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 02:13PM UTC
Files 33
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 02:11PM UTC coverage: 91.447% (+0.2%) from 91.218%
41845050182.25

push

github

web-flow
refactor: remove unused imports, variables and star imports (#1970)

Resolves SDK-2757.

## What

Only `realtime` ignored `F401` (unused import) and `F841` (unused
variable). The root `pyproject.toml` and every other package already
enforced both. This removes the two ignores from
`src/realtime/pyproject.toml` and cleans up the 82 violations they were
hiding.

It also removes the `F403` (star import) ignore from the root,
`supabase` and `realtime` configs, and replaces the remaining star
imports with explicit re-exports.

- Removed 79 unused imports across `realtime` source and tests (`json`,
`re`, `sys`, `functools.wraps`, `urllib.parse` helpers,
`yarl._query.get_str_query`, legacy `typing` names like `Optional` and
`Union`, and message/types names that were imported but never used).
- Fixed the three unused variables in tests:
- `tests/test_presence.py`: `res = await chan.track(user1)` became
`await chan.track(user1)`, keeping the call.
- `tests/test_reconnection.py`: dropped `as exc` from `except
MaxRetriesExceeded` and `as channel` from `async with
client.channel(...)`, keeping the context manager.

## Public API

`realtime/__init__.py` already re-exports explicitly (`import x as x`)
or through star imports, so ruff did not flag it. Nothing in
`sdk-compliance.yaml` changed. The only visible effect is that the star
imports of `realtime.exceptions`, `realtime.message` and
`realtime.types` no longer leak a few third-party helpers that those
modules imported without using them (`Optional`, `Union`, `Any`,
`Generic`, `Required`, `TypedDict` and `pydantic.Field`). None of these
were part of the realtime API.

## Kept with `noqa`

None. No unused import or variable was a placeholder for unfinished
work. The only `TODO` in `realtime` is about a payload type and is
unrelated to these imports.

## `F403`

Removed. The root, `supabase` and `realtime` configs no longer ignore
it. The four star imports are replaced with explicit `import X as X`
re-exports, in ... (continued)

3293 of 3601 relevant lines covered (91.45%)

0.91 hits per line

Source Files on job auth-py3.13-highest - 41845050182.25
  • Tree
  • List 33
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41845050182
  • 2f66f8c1 on github
  • Prev Job for on main (#41841757701.1)
  • Next Job for on main (#41845187970.15)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc