-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (85 loc) · 1.96 KB
/
pyproject.toml
File metadata and controls
96 lines (85 loc) · 1.96 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
[tool.poetry]
name = "cohere-compass-sdk"
version = "2.6.1"
authors = []
description = "Cohere Compass SDK"
readme = "README.md"
packages = [{ include = "cohere_compass" }]
[tool.poetry.dependencies]
fsspec = "^2025.9.0"
joblib = "^1.5.2"
pydantic = "^2.11.9"
python = ">=3.11,<4.0"
tenacity = "^9.1.2"
httpx = "^0.28.1"
[tool.poetry.group.dev.dependencies]
pyright = "^1.1.405"
pytest = "^8.4.2"
pytest-asyncio = "^1.2.0"
pytest-mock = "^3.15.1"
respx = "^0.22.0"
ruff = "^0.13.1"
pytest-cov = "^7.0.0"
pre-commit = "^4.3.0"
[tool.pyright]
reportMissingImports = false
typeCheckingMode = "strict"
venv = ".venv"
venvPath = "."
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
extend-select = [
"C90", # mccabe (for code complexity)
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"Q", # flakes8-quotes
"RUF", # Ruff-specific
"UP", # pyupgrade
]
ignore = [
"D100", # ignore missing docstring in module
"D104", # ignore missing docstring in public package
"D212", # ignore multi-line docstring summary should start at the first line
]
isort = { known-first-party = ["cohere_compass"] }
mccabe = { max-complexity = 15 }
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"]
[tool.pytest.ini_options]
addopts = """
--cov=cohere_compass
--cov-report=term-missing
--cov-report=html
--cov-report=xml
--cov-branch
"""
pythonpath = ["./"]
testpaths = "tests"
xfail_strict = true
[tool.coverage.run]
branch = true
source = ["cohere_compass"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under = 80
ignore_errors = true
omit = [
"tests/*",
"setup.py",
]
[tool.coverage.html]
directory = "coverage_html"