-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (161 loc) · 4.27 KB
/
Copy pathpyproject.toml
File metadata and controls
176 lines (161 loc) · 4.27 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[project]
name = "abxbus"
description = "Advanced Pydantic-powered event bus with async support"
authors = [{ name = "Nick Sweeting" }, { name = "ArchiveBox" }]
version = "2.5.17"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"pydantic>=2.13.4",
"typing-extensions>=4.15.0",
"uuid7>=0.1.0",
]
[project.optional-dependencies]
postgres = [
"asyncpg>=0.31.0",
]
nats = [
"nats-py>=2.14.0",
]
redis = [
"redis>=7.4.0",
]
# Tachyon's native core requires GCC 14+ / Clang 17+ to compile, so it's exposed
# as its own extra and intentionally excluded from `bridges` to keep that
# aggregate installable on stock CI/runtimes. Install with `abxbus[tachyon]`.
tachyon = [
"tachyon-ipc>=0.5.0",
]
bridges = [
"asyncpg>=0.31.0",
"nats-py>=2.14.0",
"redis>=7.4.0",
]
[project.urls]
Homepage = "https://abxbus.archivebox.io"
Repository = "https://github.com/ArchiveBox/abxbus"
"Issue Tracker" = "https://github.com/ArchiveBox/abxbus/issues"
Documentation = "https://abxbus.archivebox.io"
DeepWiki = "https://deepwiki.com/ArchiveBox/abxbus"
PyPI = "https://pypi.org/project/abxbus/"
NPM = "https://www.npmjs.com/package/abxbus"
[dependency-groups]
dev = [
"ruff>=0.15.12",
"build>=1.5.0",
"pytest>=8.3.3,<9", # pytest-codeblocks 0.17.0 still uses the pre-pytest-9 collect hook signature.
"pytest-asyncio>=1.3.0",
"pytest-codeblocks>=0.17.0",
"pytest-github-actions-annotate-failures>=0.4.0",
"pytest-httpserver>=1.1.5",
"ipdb>=0.13.13",
"codespell>=2.4.2",
"pyright>=1.1.409",
"ty>=0.0.34",
"pytest-xdist>=3.8.0",
"psutil>=7.2.2",
"pytest-cov>=7.1.0",
"pytest-timeout>=2.4.0",
"prek>=0.3.13",
]
[build-system]
requires = ["uv_build>=0.11.11,<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "abxbus"
module-root = "."
source-exclude = [
"/examples",
"/tests",
"/abxbus-ts",
"/test.sh",
"/.github",
"/.pytest_cache",
"/.cursor",
"/.claude",
]
[tool.codespell]
ignore-words-list = "abx,abxbus,bu,wit,dont,cant,wont,re-use,re-used,re-using,re-usable,thats,doesnt"
skip = "*.json"
[tool.ruff]
line-length = 130
fix = true
[tool.ruff.lint]
preview = true
select = ["ASYNC", "E", "F", "FAST", "I", "PLE"]
ignore = ["ASYNC109", "E101", "E402", "E501", "F841", "E731", "W291"] # TODO: determine if adding timeouts to all the unbounded async functions is needed / worth-it so we can un-ignore ASYNC109
unfixable = ["E101", "E402", "E501", "F841", "E731"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ASYNC220", "ASYNC221", "ASYNC240"]
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
line-ending = "lf"
docstring-code-format = true
docstring-code-line-length = 140
skip-magic-trailing-comma = false
[tool.pyright]
stubPath = "abxbus/typings"
pythonVersion = "3.11"
typeCheckingMode = "strict"
reportMissingImports = "error"
reportMissingTypeStubs = "error"
reportPrivateUsage = "error"
venvPath = "."
venv = ".venv"
include = ["abxbus", "examples", "tests"]
executionEnvironments = [
{ root = "tests", extraPaths = ["."] },
]
[tool.ty.src]
include = ["abxbus", "examples", "tests"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
asyncio_default_test_loop_scope = "function"
testpaths = [
"tests",
"README.md",
"AGENTS.md",
"skills",
"docs",
]
python_files = ["test_*.py", "*_test.py"]
addopts = "-svx --strict-markers --tb=short --dist=loadscope --codeblocks"
log_cli = true
log_cli_format = "%(levelname)-8s [%(name)s] %(message)s"
filterwarnings = [
"ignore::pytest.PytestDeprecationWarning",
"ignore::DeprecationWarning",
]
log_level = "DEBUG"
[tool.coverage.run]
source = ["abxbus"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*.pyc",
]
parallel = true
data_file = ".coverage"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"return NotImplemented",
"assert_never",
"\\.\\.\\.",
"^\\s*$", # Blank lines
]
show_missing = true
skip_covered = false
precision = 2
[tool.coverage.html]
directory = "htmlcov"