Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit bb187a6

Browse files
committed
Merge branch 'main' into bump-python-lsp-server-1.13.0
2 parents 373eb18 + 5f611f4 commit bb187a6

File tree

16 files changed

+890
-552
lines changed

16 files changed

+890
-552
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
github_access_token: ${{ secrets.GITHUB_TOKEN }}
5454
- name: Clone Repository
5555
uses: actions/checkout@v4
56+
- name: Type check
57+
run: nix develop --command mypy ./realtime
5658
- name: Start Supabase local development setup
5759
run: nix develop --command supabase start --workdir infra -x studio,mailpit,edge-runtime,logflare,vector,supavisor,imgproxy,storage-api
5860
- name: Run python tests through nix

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.5.3"
2+
".": "2.6.0"
33
}

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33

44

5+
## [2.6.0](https://github.com/supabase/realtime-py/compare/v2.5.3...v2.6.0) (2025-07-10)
6+
7+
8+
### Features
9+
10+
* improve typing definitions, introduce mypy in CI ([#338](https://github.com/supabase/realtime-py/issues/338)) ([513ae3a](https://github.com/supabase/realtime-py/commit/513ae3aac8d0077c2a357ef4383209749c2d9312))
11+
12+
13+
### Bug Fixes
14+
15+
* Do not supress callback exceptions ([#332](https://github.com/supabase/realtime-py/issues/332)) ([f978d39](https://github.com/supabase/realtime-py/commit/f978d39181d6b5a94f2aad311b7ea8220ea8673f))
16+
517
## [2.5.3](https://github.com/supabase/realtime-py/compare/v2.5.2...v2.5.3) (2025-06-26)
618

719

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ install_poetry:
55
curl -sSL https://install.python-poetry.org | python -
66
poetry install
77

8-
tests: install tests_only tests_pre_commit
8+
tests: install run_mypy tests_only tests_pre_commit
99

1010
tests_pre_commit:
1111
poetry run pre-commit run --all-files
1212

13+
run_mypy:
14+
poetry run mypy ./realtime
15+
1316
run_infra:
1417
npx supabase start --workdir infra -x studio,mailpit,edge-runtime,logflare,vector,supavisor,imgproxy,storage-api
1518

poetry.lock

Lines changed: 198 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "realtime"
3-
version = "2.5.3" # {x-release-please-version}
3+
version = "2.6.0" # {x-release-please-version}
44
description = ""
55
authors = [
66
{ name = "Joel Lee", email="[email protected]"},
@@ -13,16 +13,17 @@ requires-python = ">=3.9"
1313
dependencies = [
1414
"websockets >=11,<16",
1515
"typing-extensions >=4.14.0",
16+
"pydantic (>=2.11.7,<3.0.0)",
1617
]
1718

1819
[tool.poetry.group.dev.dependencies]
1920
aiohttp = "^3.12.13"
2021
pytest = "^8.4.1"
2122
pytest-cov = "^6.2.1"
2223
python-dotenv = "^1.1.1"
23-
pytest-asyncio = "^1.0.0"
24+
pytest-asyncio = "^1.1.0"
2425
pre-commit = "^4.2.0"
25-
ruff = "^0.12.2"
26+
ruff = "^0.12.5"
2627
python-lsp-server = ">=1.12.2,<2.0.0"
2728
pylsp-mypy = ">=0.7.0,<0.8.0"
2829
python-lsp-ruff = ">=2.2.2,<3.0.0"
@@ -77,3 +78,13 @@ keep-runtime-typing = true
7778
[tool.pytest.ini_options]
7879
asyncio_mode = "strict"
7980
asyncio_default_fixture_loop_scope = "function"
81+
82+
[tool.mypy]
83+
python_version = "3.9"
84+
check_untyped_defs = true
85+
allow_redefinition = true
86+
87+
warn_return_any = true
88+
warn_unused_configs = true
89+
warn_redundant_casts = true
90+
warn_unused_ignores = true

0 commit comments

Comments
 (0)