-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (120 loc) · 3.06 KB
/
pyproject.toml
File metadata and controls
134 lines (120 loc) · 3.06 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "spooled"
version = "1.0.13"
description = "Official Python SDK for Spooled Cloud job queue service"
readme = "README.md"
license = "Apache-2.0"
authors = [
{ name = "Spooled Cloud", email = "support@spooled.cloud" }
]
keywords = [
"spooled",
"job-queue",
"task-queue",
"background-jobs",
"webhooks",
"cron",
"scheduler",
"workflow"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
requires-python = ">=3.10"
dependencies = [
"httpx>=0.25.0",
"pydantic>=2.0.0",
]
[project.optional-dependencies]
grpc = [
"grpcio>=1.60.0",
"grpcio-tools>=1.60.0",
"protobuf>=4.25.0",
]
realtime = [
"websockets>=12.0",
"sseclient-py>=1.8.0",
]
worker = []
all = [
"spooled[grpc,realtime,worker]",
]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"respx>=0.21.0",
"mypy>=1.8.0",
"types-protobuf>=4.25.0",
"ruff>=0.1.0",
"pre-commit>=3.6.0",
]
[project.urls]
Homepage = "https://spooled.cloud"
Documentation = "https://spooled.cloud/docs/"
Repository = "https://github.com/spooled-cloud/spooled-sdk-python"
Changelog = "https://github.com/spooled-cloud/spooled-sdk-python/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = ["src/spooled"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/proto",
"/LICENSE",
"/README.md",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-v --cov=spooled --cov-report=term-missing"
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
exclude = ["tests", "examples", "src/spooled/grpc/stubs"]
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = [
"grpc",
"grpc.*",
"websockets",
"websockets.*",
"sseclient",
"httpx",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "spooled.grpc.stubs.*"
ignore_errors = true
[tool.ruff]
target-version = "py310"
line-length = 100
# Exclude auto-generated protobuf files
exclude = ["src/spooled/grpc/stubs/*_pb2*.py"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
ignore = [
"E501", # Line too long
"SIM102", # Nested if statements - sometimes clearer with comments
"SIM105", # Use contextlib.suppress - not always appropriate for async
"SIM117", # Nested with statements - sometimes clearer in tests
]
[tool.ruff.lint.per-file-ignores]
# Auto-generated protobuf stubs use gRPC naming conventions
"src/spooled/grpc/stubs/*.py" = ["N802", "N803", "N806"]
[tool.ruff.lint.isort]
known-first-party = ["spooled"]