-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
78 lines (69 loc) · 1.74 KB
/
pyproject.toml
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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name="replit-river"
version="0.0.0a0"
description="Replit river toolkit for Python"
authors = ["Replit <[email protected]>"]
license = "LICENSE"
keywords = ["rpc", "websockets"]
readme = "README.md"
[tool.poetry.scripts]
river-codegen-py = "replit_river.codegen.run:main"
[tool.poetry.dependencies]
python = "^3.11"
grpcio = "^1.59.3"
grpcio-tools = "^1.59.3"
protobuf = "^4.24.4"
black = ">=23.11,<25.0"
msgpack = "^1.0.7"
aiochannel = "^1.2.1"
nanoid = "^2.0.0"
websockets = "^12.0"
pydantic-core = "^2.20.1"
msgpack-types = "^0.3.0"
pydantic = "=2.9.2"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
mypy = "^1.4.0"
black = ">=23.3,<25.0"
pytest-cov = "^4.1.0"
ruff = "^0.0.278"
pytest-mock = "^3.11.1"
pytest-asyncio = "^0.21.1"
types-protobuf = "^4.24.0.20240311"
mypy-protobuf = "^3.5.0"
deptry = "^0.14.0"
[tool.ruff]
select = ["F", "E", "W", "I001"]
# Should be kept in sync with mypy.ini in the project root.
# The VSCode mypy extension can only read /mypy.ini.
# While mypy run inside the chat container can only see this file.
[tool.mypy]
plugins = "pydantic.mypy"
disallow_untyped_defs = true
warn_return_any = true
[tool.pytest.ini_options]
asyncio_mode = "auto" # auto-detect async tests/fixtures
addopts = "--tb=short"
env = [
"DD_DOGSTATSD_DISABLE=true",
"DD_TRACE_ENABLED=false",
]
filterwarnings = [
"ignore::DeprecationWarning", # google SDKs cause this noise
]
markers = [
"e2e: marks tests as end-to-end (deselect with '-m \"not e2e\"')",
]
[[tool.mypy.overrides]]
module = [
"google.auth.*",
"google.oauth2.*",
"google.cloud.sqlalchemy_spanner.sqlalchemy_spanner.*",
"grpc.*",
"grpc_tools.*",
"nanoid.*",
]
ignore_missing_imports = true