-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (146 loc) · 4.39 KB
/
pyproject.toml
File metadata and controls
160 lines (146 loc) · 4.39 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pydocket"
dynamic = ["version"]
description = "A distributed background task system for Python functions"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Chris Guidry", email = "guid@omg.lol" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
dependencies = [
"cloudpickle>=3.1.1",
"croniter>=6",
"exceptiongroup>=1.2.0; python_version < '3.11'",
"taskgroup>=0.2.2; python_version < '3.11'",
"fakeredis[lua]>=2.32.1",
"opentelemetry-api>=1.33.0",
"prometheus-client>=0.21.1",
"py-key-value-aio[memory,redis]>=0.3.0",
"python-json-logger>=2.0.7",
"redis>=5",
"rich>=13.9.4",
"typer>=0.15.1",
"typing_extensions>=4.12.0",
"tzdata>=2025.2; sys_platform == 'win32'",
"uncalled-for>=0.1.2",
]
[project.optional-dependencies]
metrics = [
"opentelemetry-sdk>=1.33.0",
]
[dependency-groups]
dev = [
"codespell>=2.4.1",
"docker>=7.1.0",
# Security: urllib3 >=2.6.3 fixes decompression bomb vulnerabilities
"urllib3>=2.6.3",
"ipython>=8.0.0",
"loq>=0.1.0a3",
"mypy>=1.14.1",
"opentelemetry-distro>=0.60b0",
"opentelemetry-exporter-otlp>=1.33.0",
"opentelemetry-exporter-prometheus>=0.60b0",
"opentelemetry-instrumentation>=0.60b0",
"opentelemetry-instrumentation-logging>=0.60b0",
"opentelemetry-instrumentation-redis>=0.60b0",
"opentelemetry-sdk>=1.33.0",
"prek>=0.3.1",
"pyright>=1.1.408",
"pytest>=9.0.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pytest-flakefinder>=1.1.0",
"pytest-randomly>=4.0.0",
"pytest-repeat>=0.9.3",
"pytest-timeout>=2.4.0",
"pytest-xdist>=3.6.1",
"ruff>=0.14.14",
"types-croniter>=6",
"zensical",
"mkdocstrings>=1.0.2",
"mkdocstrings-python>=2.0.1",
]
examples = [
"fastapi>=0.120.0",
"pydantic>=2.12.5",
# Security: starlette >=0.49.1 fixes session middleware vulnerability
"starlette>=0.49.1",
"uvicorn>=0.40.0",
]
[project.scripts]
docket = "docket.__main__:app"
[project.urls]
"Homepage" = "https://docket.lol/"
"Documentation" = "https://docket.lol/en/latest/"
"Repository" = "https://github.com/chrisguidry/docket"
"Bug Tracker" = "https://github.com/chrisguidry/docket/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/docket"]
[tool.ruff]
target-version = "py310"
[tool.pytest.ini_options]
addopts = [
"--numprocesses=logical",
"--maxprocesses=4",
"--cov=src/docket",
"--cov=tests",
"--cov-report=term-missing:skip-covered",
"--cov-branch",
"--cov-fail-under=100",
"--timeout=30",
"--import-mode=importlib",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
asyncio_default_test_loop_scope = "function"
filterwarnings = [
"error",
# redis-py 7.2.0 deprecated lib_name/lib_version on Connection.__init__,
# but RedisCluster still passes lib_name="redis-py" internally (#341)
"ignore:Call to.*lib_name.*:DeprecationWarning",
]
[tool.coverage.run]
omit = [
# Entry point wrapper
"src/docket/__main__.py",
# Vendored uuid7 implementation
"src/docket/_uuid7.py",
# Vendored OpenTelemetry prometheus exporter
"src/docket/_prometheus_exporter.py",
# Cluster-only code paths not exercised in standalone tests
"src/docket/_result_store.py",
# Fixture branches vary by Redis config (cluster, ACL, memory, valkey)
"**/conftest.py",
# Test infrastructure with conditional branches for cluster/standalone
"tests/_key_leak_checker.py",
"tests/_container.py",
# Subprocess coverage hook, exercised by CLI tests only
"tests/sitecustomize.py",
]
branch = true
parallel = true
[tool.coverage.report]
exclude_also = ["\\.\\.\\.$"]
[tool.pyright]
include = ["src", "tests", "chaos"]
typeCheckingMode = "strict"
venvPath = "."
venv = ".venv"