Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 1.8 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (67 loc) · 1.8 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "context-aggregator"
version = "2.6.0"
description = "File aggregation tool for LMArena blind pairwise model comparisons with CLI, TUI, GUI, and a browser extension"
readme = "docs/README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
authors = [
{name = "fote"},
]
[tool.setuptools.packages.find]
include = ["core*", "gui*"]
# ---------------------------------------------------------------------------
# Pytest configuration
# ---------------------------------------------------------------------------
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--tb=short",
]
markers = [
"integration: end-to-end tests that boot the FastAPI app and exercise the HTTP layer",
"unit: pure-function unit tests (default)",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore::DeprecationWarning",
]
# ---------------------------------------------------------------------------
# Coverage (run with `pytest --cov`)
# ---------------------------------------------------------------------------
[tool.coverage.run]
branch = true
source = ["core", "gui/server"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/.venv/*",
"*/venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = true
precision = 1
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP"]
[tool.ruff.format]
quote-style = "double"