This repository was archived by the owner on Aug 21, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (82 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
90 lines (82 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[project]
name = "realtime"
version = "2.7.0" # {x-release-please-version}
description = ""
authors = [
{ name = "Joel Lee", email="joel@joellee.org"},
{ name = "Andrew Smith", email="a.smith@silentworks.co.uk"},
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/supabase/realtime-py"
requires-python = ">=3.9"
dependencies = [
"websockets >=11,<16",
"typing-extensions >=4.14.0",
"pydantic (>=2.11.7,<3.0.0)",
]
[tool.poetry.group.dev.dependencies]
aiohttp = "^3.12.15"
pytest = "^8.4.1"
pytest-cov = "^6.2.1"
python-dotenv = "^1.1.1"
pytest-asyncio = "^1.1.0"
pre-commit = "^4.2.0"
ruff = "^0.12.5"
python-lsp-server = ">=1.12.2,<2.0.0"
pylsp-mypy = ">=0.7.0,<0.8.0"
python-lsp-ruff = ">=2.2.2,<3.0.0"
# maintain two copies of the groups while poetry
# doesn't implement pep 735 support.
# https://peps.python.org/pep-0735/
# https://github.com/python-poetry/poetry/issues/9751
[dependency-groups]
tests = [
"aiohttp >= 3.12.13",
"pytest >= 8.4.1",
"pytest-cov >= 6.2.1",
"python-dotenv >= 1.1.1",
"pytest-asyncio >= 1.0.0",
]
lints = [
"pre-commit >= 4.2.0",
"ruff >= 0.12.1",
"python-lsp-server (>=1.12.2,<2.0.0)",
"pylsp-mypy (>=0.7.0,<0.8.0)",
"python-lsp-ruff (>=2.2.2,<3.0.0)",
]
dev = [{ include-group = "lints" }, {include-group = "tests" }]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
# "B",
# flake8-simplify
# "SIM",
# isort
"I",
]
ignore = ["F401", "F403", "F841", "E712", "E501", "E402", "UP006", "UP035"]
# isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
[tool.mypy]
python_version = "3.9"
check_untyped_defs = true
allow_redefinition = true
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true