-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
26 lines (24 loc) · 1.1 KB
/
pyproject.toml
File metadata and controls
26 lines (24 loc) · 1.1 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
[tool.uv.workspace]
members = ["packages/*"]
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=0.25.0",
"pytest-watcher>=0.6.3",
"python-semantic-release>=10.5.3",
]
[tool.pytest.ini_options]
# Recommended for monorepos: allows duplicate test module names across packages
# See: https://docs.pytest.org/en/stable/explanation/pythonpath.html#which-import-mode
# --ignore: zarr-access uses aiohttp session-scoped fixtures that deadlock when
# collected together with other packages from the monorepo root (works fine when
# run via `pytest packages/zarr-access/tests/`).
addopts = "--import-mode=importlib --ignore=packages/zarr-access"
# cell-explorer-agent's tests are written without @pytest.mark.asyncio decorators
# and rely on its package-local asyncio_mode=auto config. When pytest runs from
# the root, only the root config is read — set auto here too so cross-package
# runs work. Tests with explicit @pytest.mark.asyncio (e.g. in packages/api)
# remain valid under auto mode.
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
asyncio_default_test_loop_scope = "function"